diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-25 11:00:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 11:00:24 +0200 |
commit | 75674295504af9118d2af3c8677d8e1e84e85e77 (patch) | |
tree | 096f6c4635168e71e29e611cebc9afac9e22736b /swaybar/i3bar.c | |
parent | Merge pull request #1858 from emersion/master (diff) | |
parent | Fix a bunch of swaybar memory leaks (diff) | |
download | sway-75674295504af9118d2af3c8677d8e1e84e85e77.tar.gz sway-75674295504af9118d2af3c8677d8e1e84e85e77.tar.zst sway-75674295504af9118d2af3c8677d8e1e84e85e77.zip |
Merge pull request #1861 from emersion/swaybar-memory-leaks
Fix a bunch of swaybar memory leaks
Diffstat (limited to 'swaybar/i3bar.c')
-rw-r--r-- | swaybar/i3bar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/swaybar/i3bar.c b/swaybar/i3bar.c index dced13d2..141612a6 100644 --- a/swaybar/i3bar.c +++ b/swaybar/i3bar.c | |||
@@ -7,7 +7,7 @@ | |||
7 | #include "swaybar/config.h" | 7 | #include "swaybar/config.h" |
8 | #include "swaybar/status_line.h" | 8 | #include "swaybar/status_line.h" |
9 | 9 | ||
10 | static void i3bar_block_free(struct i3bar_block *block) { | 10 | void i3bar_block_free(struct i3bar_block *block) { |
11 | if (!block) { | 11 | if (!block) { |
12 | return; | 12 | return; |
13 | } | 13 | } |
@@ -18,6 +18,7 @@ static void i3bar_block_free(struct i3bar_block *block) { | |||
18 | free(block->name); | 18 | free(block->name); |
19 | free(block->instance); | 19 | free(block->instance); |
20 | free(block->color); | 20 | free(block->color); |
21 | free(block); | ||
21 | } | 22 | } |
22 | 23 | ||
23 | static bool i3bar_parse_json(struct status_line *status, const char *text) { | 24 | static bool i3bar_parse_json(struct status_line *status, const char *text) { |