summaryrefslogtreecommitdiffstats
path: root/swaybar/status_line.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-09-12 12:28:14 -0400
committerLibravatar GitHub <noreply@github.com>2018-09-12 12:28:14 -0400
commitdbaafdfac9057f718be406e972ba15651130e16e (patch)
tree33fcd285cc70a6cea257b1f3b6d24121d340a270 /swaybar/status_line.c
parentMerge pull request #2620 from ianyfan/commands (diff)
parenti3bar: count references to blocks (diff)
downloadsway-dbaafdfac9057f718be406e972ba15651130e16e.tar.gz
sway-dbaafdfac9057f718be406e972ba15651130e16e.tar.zst
sway-dbaafdfac9057f718be406e972ba15651130e16e.zip
Merge pull request #2622 from ianyfan/i3bar-block-ref
i3bar: count references to blocks
Diffstat (limited to 'swaybar/status_line.c')
-rw-r--r--swaybar/status_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c
index bc47580b..3ba990bd 100644
--- a/swaybar/status_line.c
+++ b/swaybar/status_line.c
@@ -130,7 +130,7 @@ void status_line_free(struct status_line *status) {
130 case PROTOCOL_I3BAR:; 130 case PROTOCOL_I3BAR:;
131 struct i3bar_block *block, *tmp; 131 struct i3bar_block *block, *tmp;
132 wl_list_for_each_safe(block, tmp, &status->blocks, link) { 132 wl_list_for_each_safe(block, tmp, &status->blocks, link) {
133 i3bar_block_free(block); 133 i3bar_block_unref(block);
134 } 134 }
135 free(status->i3bar_state.buffer); 135 free(status->i3bar_state.buffer);
136 break; 136 break;