mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
fix misc memory leaks
This fixes a few misc memory leaks reported by asan: - Items of `config->config_chain` are now freed instead of just the list itself - `bar->swaybar_command` is now freed - The result returned by a seat subcommand is now returned instead of leaked
This commit is contained in:
parent
a64a3ee6bb
commit
d2c896ed84
3 changed files with 3 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ void free_config(struct sway_config *config) {
|
|||
}
|
||||
list_free(config->no_focus);
|
||||
list_free(config->active_bar_modifiers);
|
||||
list_free(config->config_chain);
|
||||
list_free_items_and_destroy(config->config_chain);
|
||||
list_free(config->command_policies);
|
||||
list_free(config->feature_policies);
|
||||
list_free(config->ipc_policies);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue