aboutsummaryrefslogtreecommitdiff
path: root/swaybar/i3bar.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-25 11:00:56 +0200
committerGitHub <noreply@github.com>2018-04-25 11:00:56 +0200
commitc54097428a8f36e456d203d986d76702bd339066 (patch)
treeec248905f4c73d8f52c3e2c08ce26decbda2d704 /swaybar/i3bar.c
parentdfc26c664f8c1b007f15ff24a3055774af200c69 (diff)
parent75674295504af9118d2af3c8677d8e1e84e85e77 (diff)
Merge branch 'master' into criteria-commands
Diffstat (limited to 'swaybar/i3bar.c')
-rw-r--r--swaybar/i3bar.c3
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) {