diff options
Diffstat (limited to 'sway')
-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); } |