Skip to content

Commit

Permalink
Add qvi_zgroup_free().
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel K. Gutierrez <[email protected]>
  • Loading branch information
samuelkgutierrez committed May 24, 2024
1 parent 5b0a374 commit aa9fd24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/qvi-context.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ struct qv_context_s {
~qv_context_s(void)
{
qvi_bind_stack_free(&bind_stack);
qvi_zgroup_free(&zgroup);
qvi_rmi_client_free(&rmi);
delete zgroup;
}
};

Expand Down
8 changes: 8 additions & 0 deletions src/qvi-zgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "qvi-common.h" // IWYU pragma: keep
#include "qvi-task.h"
#include "qvi-group.h"
#include "qvi-utils.h"

/**
* Virtual base zgroup class.
Expand All @@ -44,6 +45,13 @@ struct qvi_zgroup_s {
};
typedef qvi_zgroup_s qvi_zgroup_t;

static inline void
qvi_zgroup_free(
qvi_zgroup_t **zgroup
) {
qvi_delete(zgroup);
}

#endif

/*
Expand Down

0 comments on commit aa9fd24

Please sign in to comment.