mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05: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
|
|
@ -46,6 +46,7 @@ void free_bar_config(struct bar_config *bar) {
|
|||
free(bar->position);
|
||||
free(bar->hidden_state);
|
||||
free(bar->status_command);
|
||||
free(bar->swaybar_command);
|
||||
free(bar->font);
|
||||
free(bar->separator_symbol);
|
||||
for (int i = 0; i < bar->bindings->length; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue