aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorConnor E <38229097+c-edw@users.noreply.github.com>2019-02-01 11:51:03 +0000
committerConnor E <38229097+c-edw@users.noreply.github.com>2019-02-01 11:51:03 +0000
commit49b667272b3c5e714692bb31a8e276031ac9a941 (patch)
tree948eee5881f1d1ce8bad50d64b7647c2640d819e /sway
parentde76c4e071471e7ca4a06010b1d0d8c1ebd33eea (diff)
Revert "Add some missing frees."
This reverts commit b5d95f264d5b08f6228e05be680ee36fc06ca6d6.
Diffstat (limited to 'sway')
-rw-r--r--sway/config/output.c1
-rw-r--r--sway/criteria.c7
2 files changed, 3 insertions, 5 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index cc5f29db..970764b0 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -402,6 +402,5 @@ void free_output_config(struct output_config *oc) {
free(oc->name);
free(oc->background);
free(oc->background_option);
- free(oc->background_fallback);
free(oc);
}
diff --git a/sway/criteria.c b/sway/criteria.c
index 59a923f9..48ef39df 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -35,19 +35,18 @@ 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);
#if 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);
}