diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-20 10:11:11 +0100 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-12-20 10:14:36 +0100 |
commit | 2779559b153696daab8ce0d4c0ad9066d2353f8a (patch) | |
tree | 6cb66f9aa1349e193bb290864ac37a38d28124ea /sway/config.c | |
parent | 3777c8993b8967aa3fd313c2c7a9304a798efa37 (diff) |
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).
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index faa3e387..42605f49 100644 --- a/sway/config.c +++ b/sway/config.c @@ -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); } |