diff options
Diffstat (limited to 'swaybar/status_line.c')
-rw-r--r-- | swaybar/status_line.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c index 3ba990bd..688e5947 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c | |||
@@ -127,13 +127,15 @@ void status_line_free(struct status_line *status) { | |||
127 | close(status->write_fd); | 127 | close(status->write_fd); |
128 | kill(status->pid, SIGTERM); | 128 | kill(status->pid, SIGTERM); |
129 | switch (status->protocol) { | 129 | switch (status->protocol) { |
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 | wl_list_remove(&block->link); | ||
133 | i3bar_block_unref(block); | 134 | i3bar_block_unref(block); |
134 | } | 135 | } |
135 | free(status->i3bar_state.buffer); | 136 | free(status->i3bar_state.buffer); |
136 | break; | 137 | break; |
138 | } | ||
137 | default: | 139 | default: |
138 | free(status->text_state.buffer); | 140 | free(status->text_state.buffer); |
139 | break; | 141 | break; |