summaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <[email protected]>2016-02-24 18:53:09 +0100
committerMikkel Oscar Lyderik <[email protected]>2016-02-27 22:13:15 +0100
commit67bbcceba1433e41b5edfca32532b7d55a39a395 (patch)
tree6be69c67c3fbdc9cb320dd7d34b26564ff486a67 /sway/main.c
parente15a8a03769736f588f68ae5e1cc24611ed334ae (diff)
Free config before exiting sway.
Apart from freeing the sway_config struct, this also terminates the swaybars spawned by sway, since they are linked by PID to the bar config structs.
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 7ea392b6..7c712281 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -228,6 +228,10 @@ int main(int argc, char **argv) {
ipc_terminate();
+ if (config) {
+ free_config(config);
+ }
+
return exit_value;
}