diff options
author | 2015-12-14 19:58:41 -0500 | |
---|---|---|
committer | 2015-12-14 19:58:41 -0500 | |
commit | 242da783f468ea4ff8b88fa5c549379b0b6f449d (patch) | |
tree | 4dda9bfd40b67ecd667f7db672a563bace88bf07 /sway | |
parent | Merge pull request #325 from gpyh/bar_cmd_modifier (diff) | |
parent | Free bar->bindings (diff) | |
download | sway-242da783f468ea4ff8b88fa5c549379b0b6f449d.tar.gz sway-242da783f468ea4ff8b88fa5c549379b0b6f449d.tar.zst sway-242da783f468ea4ff8b88fa5c549379b0b6f449d.zip |
Merge pull request #324 from mikkeloscar/free-bar-bindings
Free bar->bindings
Diffstat (limited to 'sway')
-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) { | |||
43 | free(bar->hidden_state); | 43 | free(bar->hidden_state); |
44 | free(bar->status_command); | 44 | free(bar->status_command); |
45 | free(bar->font); | 45 | free(bar->font); |
46 | int i; | ||
47 | for (i = 0; i < bar->bindings->length; ++i) { | ||
48 | free_sway_mouse_binding(bar->bindings->items[i]); | ||
49 | } | ||
50 | free(bar->bindings); | ||
46 | free(bar); | 51 | free(bar); |
47 | } | 52 | } |
48 | 53 | ||