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.
This commit is contained in:
Mikkel Oscar Lyderik 2016-02-24 18:53:09 +01:00
parent e15a8a0376
commit 67bbcceba1
3 changed files with 9 additions and 1 deletions

View file

@ -86,7 +86,7 @@ static void free_workspace_output(struct workspace_output *wo) {
free(wo);
}
static void free_config(struct sway_config *config) {
void free_config(struct sway_config *config) {
int i;
for (i = 0; i < config->symbols->length; ++i) {
free_variable(config->symbols->items[i]);