diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-04-24 22:04:19 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-04-24 22:04:19 +0100 |
| commit | f0acd9b7f8697063e78e089230c0cf6860a77a3a (patch) | |
| tree | 096f6c4635168e71e29e611cebc9afac9e22736b /swaybar/i3bar.c | |
| parent | 85aa8e8d09baf3e451c188c15786338c8021ede8 (diff) | |
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 @@ #include "swaybar/config.h" #include "swaybar/status_line.h" -static void i3bar_block_free(struct i3bar_block *block) { +void i3bar_block_free(struct i3bar_block *block) { if (!block) { return; } @@ -18,6 +18,7 @@ static void i3bar_block_free(struct i3bar_block *block) { free(block->name); free(block->instance); free(block->color); + free(block); } static bool i3bar_parse_json(struct status_line *status, const char *text) { |
