From 2779559b153696daab8ce0d4c0ad9066d2353f8a Mon Sep 17 00:00:00 2001 From: "S. Christoffer Eliesen" Date: Sun, 20 Dec 2015 10:11:11 +0100 Subject: [PATCH] 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). --- sway/config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sway/config.c b/sway/config.c index faa3e3879..42605f491 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); }