mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Merge pull request #324 from mikkeloscar/free-bar-bindings
Free bar->bindings
This commit is contained in:
commit
242da783f4
|
@ -43,6 +43,11 @@ static void free_bar(struct bar_config *bar) {
|
|||
free(bar->hidden_state);
|
||||
free(bar->status_command);
|
||||
free(bar->font);
|
||||
int i;
|
||||
for (i = 0; i < bar->bindings->length; ++i) {
|
||||
free_sway_mouse_binding(bar->bindings->items[i]);
|
||||
}
|
||||
free(bar->bindings);
|
||||
free(bar);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue