From 419a1087ac46cd2f226a457dd6a3a41091d06870 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Thu, 5 Oct 2017 20:43:47 -0600 Subject: Clean up output command Plugs memory leaks during failure of the output command and in other circumstances and fixes `bg` option. Fixes #1381 --- sway/config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sway/config.c') diff --git a/sway/config.c b/sway/config.c index e0b65615..4cb080ab 100644 --- a/sway/config.c +++ b/sway/config.c @@ -128,6 +128,8 @@ void free_output_config(struct output_config *oc) { return; } free(oc->name); + free(oc->background); + free(oc->background_option); free(oc); } -- cgit v1.2.3