mirror of
https://github.com/swaywm/sway.git
synced 2024-12-02 03:16:47 +00:00
Merge pull request #370 from sce/fix_free_bar
config: free_bar: Check if outputs is NULL.
This commit is contained in:
commit
702cf053e2
|
@ -53,7 +53,9 @@ static void free_bar(struct bar_config *bar) {
|
||||||
}
|
}
|
||||||
list_free(bar->bindings);
|
list_free(bar->bindings);
|
||||||
|
|
||||||
|
if (bar->outputs) {
|
||||||
free_flat_list(bar->outputs);
|
free_flat_list(bar->outputs);
|
||||||
|
}
|
||||||
free(bar);
|
free(bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue