mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
parent
de76c4e071
commit
49b667272b
|
@ -402,6 +402,5 @@ void free_output_config(struct output_config *oc) {
|
||||||
free(oc->name);
|
free(oc->name);
|
||||||
free(oc->background);
|
free(oc->background);
|
||||||
free(oc->background_option);
|
free(oc->background_option);
|
||||||
free(oc->background_fallback);
|
|
||||||
free(oc);
|
free(oc);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,19 +35,18 @@ bool criteria_is_empty(struct criteria *criteria) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void criteria_destroy(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->title);
|
||||||
pcre_free(criteria->shell);
|
pcre_free(criteria->shell);
|
||||||
pcre_free(criteria->app_id);
|
pcre_free(criteria->app_id);
|
||||||
pcre_free(criteria->con_mark);
|
|
||||||
#if HAVE_XWAYLAND
|
#if HAVE_XWAYLAND
|
||||||
pcre_free(criteria->class);
|
pcre_free(criteria->class);
|
||||||
pcre_free(criteria->instance);
|
pcre_free(criteria->instance);
|
||||||
pcre_free(criteria->window_role);
|
pcre_free(criteria->window_role);
|
||||||
#endif
|
#endif
|
||||||
|
pcre_free(criteria->con_mark);
|
||||||
free(criteria->workspace);
|
free(criteria->workspace);
|
||||||
|
free(criteria->cmdlist);
|
||||||
|
free(criteria->raw);
|
||||||
free(criteria);
|
free(criteria);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,6 @@ void free_config(struct swaybar_config *config) {
|
||||||
free(config->mode);
|
free(config->mode);
|
||||||
free(config->hidden_state);
|
free(config->hidden_state);
|
||||||
free(config->sep_symbol);
|
free(config->sep_symbol);
|
||||||
free(config->modifier);
|
|
||||||
for (int i = 0; i < config->bindings->length; i++) {
|
for (int i = 0; i < config->bindings->length; i++) {
|
||||||
struct swaybar_binding *binding = config->bindings->items[i];
|
struct swaybar_binding *binding = config->bindings->items[i];
|
||||||
free_binding(binding);
|
free_binding(binding);
|
||||||
|
|
Loading…
Reference in a new issue