diff options
author | 2018-04-25 11:00:56 +0200 | |
---|---|---|
committer | 2018-04-25 11:00:56 +0200 | |
commit | c54097428a8f36e456d203d986d76702bd339066 (patch) | |
tree | ec248905f4c73d8f52c3e2c08ce26decbda2d704 /swaybar/i3bar.c | |
parent | Update wording about unmanaged/unmapped views (diff) | |
parent | Merge pull request #1861 from emersion/swaybar-memory-leaks (diff) | |
download | sway-c54097428a8f36e456d203d986d76702bd339066.tar.gz sway-c54097428a8f36e456d203d986d76702bd339066.tar.zst sway-c54097428a8f36e456d203d986d76702bd339066.zip |
Merge branch 'master' into criteria-commands
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) { |