aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-14 19:58:41 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-14 19:58:41 -0500
commit242da783f468ea4ff8b88fa5c549379b0b6f449d (patch)
tree4dda9bfd40b67ecd667f7db672a563bace88bf07 /sway
parent7b0ea051c68375ef3a9392bd73feea708abc1706 (diff)
parent95de9999226cf994b5b6edb56e2ee065c735c036 (diff)
Merge pull request #324 from mikkeloscar/free-bar-bindings
Free bar->bindings
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 1302faa8..1fff3a08 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);
}