config: free_bar: Check if outputs is NULL.

bar_config.outputs is NULL if no output is explicitly defined in config
(ie. use for for all outputs).
master
S. Christoffer Eliesen 9 years ago
parent 3777c8993b
commit 2779559b15

@ -53,7 +53,9 @@ static void free_bar(struct bar_config *bar) {
}
list_free(bar->bindings);
free_flat_list(bar->outputs);
if (bar->outputs) {
free_flat_list(bar->outputs);
}
free(bar);
}

Loading…
Cancel
Save