Add some missing frees.
This commit is contained in:
parent
ee6b0ce24a
commit
b5d95f264d
|
@ -326,6 +326,7 @@ void free_output_config(struct output_config *oc) {
|
|||
free(oc->name);
|
||||
free(oc->background);
|
||||
free(oc->background_option);
|
||||
free(oc->background_fallback);
|
||||
free(oc);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,18 +35,19 @@ bool criteria_is_empty(struct criteria *criteria) {
|
|||
}
|
||||
|
||||
void criteria_destroy(struct criteria *criteria) {
|
||||
free(criteria->raw);
|
||||
free(criteria->cmdlist);
|
||||
free(criteria->target);
|
||||
pcre_free(criteria->title);
|
||||
pcre_free(criteria->shell);
|
||||
pcre_free(criteria->app_id);
|
||||
pcre_free(criteria->con_mark);
|
||||
#ifdef HAVE_XWAYLAND
|
||||
pcre_free(criteria->class);
|
||||
pcre_free(criteria->instance);
|
||||
pcre_free(criteria->window_role);
|
||||
#endif
|
||||
pcre_free(criteria->con_mark);
|
||||
free(criteria->workspace);
|
||||
free(criteria->cmdlist);
|
||||
free(criteria->raw);
|
||||
free(criteria);
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ static void server_decoration_handle_destroy(struct wl_listener *listener,
|
|||
wl_list_remove(&deco->destroy.link);
|
||||
wl_list_remove(&deco->mode.link);
|
||||
wl_list_remove(&deco->link);
|
||||
free(deco->wlr_server_decoration);
|
||||
free(deco);
|
||||
}
|
||||
|
||||
|
|
|
@ -83,6 +83,7 @@ void free_config(struct swaybar_config *config) {
|
|||
free(config->mode);
|
||||
free(config->hidden_state);
|
||||
free(config->sep_symbol);
|
||||
free(config->modifier);
|
||||
for (int i = 0; i < config->bindings->length; i++) {
|
||||
struct swaybar_binding *binding = config->bindings->items[i];
|
||||
free_binding(binding);
|
||||
|
|
Loading…
Reference in a new issue