From 95de9999226cf994b5b6edb56e2ee065c735c036 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Tue, 15 Dec 2015 01:47:10 +0100 Subject: [PATCH] Free bar->bindings --- sway/config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sway/config.c b/sway/config.c index 2c2cc025..899c3b2f 100644 --- a/sway/config.c +++ b/sway/config.c @@ -43,6 +43,11 @@ static void free_bar(struct bar_config *bar) { free(bar->hidden_state); free(bar->status_command); free(bar->font); + int i; + for (i = 0; i < bar->bindings->length; ++i) { + free_sway_mouse_binding(bar->bindings->items[i]); + } + free(bar->bindings); free(bar); }