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.
master
Ryan Dwyer 6 years ago
parent 0451acfb75
commit 4e8bf5b328

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

Loading…
Cancel
Save