aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Calvin Lee <cyrus296@gmail.com>2017-10-05 20:43:47 -0600
committerLibravatar Calvin Lee <cyrus296@gmail.com>2017-10-05 20:46:31 -0600
commit419a1087ac46cd2f226a457dd6a3a41091d06870 (patch)
tree32fd93c7e450919a5a66181a3f8d801a595d5f6d /sway/config.c
parentMerge pull request #1379 from karjonas/variable_matching (diff)
downloadsway-419a1087ac46cd2f226a457dd6a3a41091d06870.tar.gz
sway-419a1087ac46cd2f226a457dd6a3a41091d06870.tar.zst
sway-419a1087ac46cd2f226a457dd6a3a41091d06870.zip
Clean up output command
Plugs memory leaks during failure of the output command and in other circumstances and fixes `bg` option. Fixes #1381
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c2
1 files changed, 2 insertions, 0 deletions
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) {
128 return; 128 return;
129 } 129 }
130 free(oc->name); 130 free(oc->name);
131 free(oc->background);
132 free(oc->background_option);
131 free(oc); 133 free(oc);
132} 134}
133 135