mirror of
https://github.com/swaywm/sway.git
synced 2024-11-17 21:49:16 +00:00
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:
parent
0451acfb75
commit
4e8bf5b328
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue