diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-02-24 18:53:09 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-02-27 22:13:15 +0100 |
commit | 67bbcceba1433e41b5edfca32532b7d55a39a395 (patch) | |
tree | 6be69c67c3fbdc9cb320dd7d34b26564ff486a67 /sway/config.c | |
parent | Improve how swaybars are spawned (diff) | |
download | sway-67bbcceba1433e41b5edfca32532b7d55a39a395.tar.gz sway-67bbcceba1433e41b5edfca32532b7d55a39a395.tar.zst sway-67bbcceba1433e41b5edfca32532b7d55a39a395.zip |
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/config.c')
-rw-r--r-- | sway/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index 16adaf0d..296e164c 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -86,7 +86,7 @@ static void free_workspace_output(struct workspace_output *wo) { | |||
86 | free(wo); | 86 | free(wo); |
87 | } | 87 | } |
88 | 88 | ||
89 | static void free_config(struct sway_config *config) { | 89 | void free_config(struct sway_config *config) { |
90 | int i; | 90 | int i; |
91 | for (i = 0; i < config->symbols->length; ++i) { | 91 | for (i = 0; i < config->symbols->length; ++i) { |
92 | free_variable(config->symbols->items[i]); | 92 | free_variable(config->symbols->items[i]); |