summaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorCalvin Lee <[email protected]>2017-10-05 20:43:47 -0600
committerCalvin Lee <[email protected]>2017-10-05 20:46:31 -0600
commit419a1087ac46cd2f226a457dd6a3a41091d06870 (patch)
tree32fd93c7e450919a5a66181a3f8d801a595d5f6d /sway/config.c
parent839064d278e69ff4e29811440098d2ef527abf1c (diff)
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) {
return;
}
free(oc->name);
+ free(oc->background);
+ free(oc->background_option);
free(oc);
}