mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Fix a bunch of swaybar memory leaks
This commit is contained in:
parent
317b8cbd93
commit
aa36899d8a
8 changed files with 38 additions and 24 deletions
|
|
@ -74,5 +74,11 @@ void free_config(struct swaybar_config *config) {
|
|||
free(config->font);
|
||||
free(config->mode);
|
||||
free(config->sep_symbol);
|
||||
struct config_output *coutput, *tmp;
|
||||
wl_list_for_each_safe(coutput, tmp, &config->outputs, link) {
|
||||
wl_list_remove(&coutput->link);
|
||||
free(coutput->name);
|
||||
free(coutput);
|
||||
}
|
||||
free(config);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue