Fix double free of mode

config->current_mode is a pointer into the config->modes list, and each
mode has already been freed.

Same with bars.
This commit is contained in:
Ryan Dwyer 2018-11-15 23:48:11 +10:00
parent 0451acfb75
commit 4e8bf5b328

View file

@ -123,8 +123,6 @@ void free_config(struct sway_config *config) {
} }
list_free(config->criteria); list_free(config->criteria);
} }
free_mode(config->current_mode);
free_bar_config(config->current_bar);
list_free(config->no_focus); list_free(config->no_focus);
list_free(config->active_bar_modifiers); list_free(config->active_bar_modifiers);
list_free(config->config_chain); list_free(config->config_chain);