summaryrefslogtreecommitdiffstats
path: root/swaybar/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r--swaybar/ipc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index cb0b81aa..884d02ff 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -152,8 +152,7 @@ static void ipc_parse_config(struct swaybar_config *config, const char *payload)
152 152
153static void ipc_update_workspaces(struct swaybar_state *state) { 153static void ipc_update_workspaces(struct swaybar_state *state) {
154 if (state->output->workspaces) { 154 if (state->output->workspaces) {
155 list_foreach(state->output->workspaces, free_workspace); 155 free_workspaces(state->output->workspaces);
156 list_free(state->output->workspaces);
157 } 156 }
158 state->output->workspaces = create_list(); 157 state->output->workspaces = create_list();
159 158