diff options
author | Connor E <38229097+c-edw@users.noreply.github.com> | 2018-11-13 13:45:01 +0000 |
---|---|---|
committer | Connor E <38229097+c-edw@users.noreply.github.com> | 2018-11-13 13:45:01 +0000 |
commit | b5d95f264d5b08f6228e05be680ee36fc06ca6d6 (patch) | |
tree | b26a13cd9d0a8bc52872a930211aef029f5c0dbc /sway | |
parent | ee6b0ce24ae74cfae5d41985cacdff6065c8f534 (diff) |
Add some missing frees.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config/output.c | 1 | ||||
-rw-r--r-- | sway/criteria.c | 7 | ||||
-rw-r--r-- | sway/decoration.c | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 2b041353..07543e3c 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -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); } diff --git a/sway/criteria.c b/sway/criteria.c index 2f9992e9..1d404333 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -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); } diff --git a/sway/decoration.c b/sway/decoration.c index 849fa89c..a6007c2e 100644 --- a/sway/decoration.c +++ b/sway/decoration.c @@ -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); } |