From 47f4aea9e75fbf44240ca6e7b2868faac55c3e60 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Tue, 15 Dec 2015 22:16:54 +0100 Subject: [PATCH] Correctly free bindings list --- sway/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/config.c b/sway/config.c index d4d3b0c8..e86bdab5 100644 --- a/sway/config.c +++ b/sway/config.c @@ -47,7 +47,7 @@ static void free_bar(struct bar_config *bar) { for (i = 0; i < bar->bindings->length; ++i) { free_sway_mouse_binding(bar->bindings->items[i]); } - free(bar->bindings); + list_free(bar->bindings); for (i = 0; i < bar->outputs->length; ++i) { free(bar->outputs->items[i]);