diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-14 19:58:41 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-14 19:58:41 -0500 |
commit | 242da783f468ea4ff8b88fa5c549379b0b6f449d (patch) | |
tree | 4dda9bfd40b67ecd667f7db672a563bace88bf07 | |
parent | 7b0ea051c68375ef3a9392bd73feea708abc1706 (diff) | |
parent | 95de9999226cf994b5b6edb56e2ee065c735c036 (diff) |
Merge pull request #324 from mikkeloscar/free-bar-bindings
Free bar->bindings
-rw-r--r-- | sway/config.c | 5 |
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); } |