aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c4
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);
}