aboutsummaryrefslogtreecommitdiff
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)
static void ipc_update_workspaces(struct swaybar_state *state) {
if (state->output->workspaces) {
- list_foreach(state->output->workspaces, free_workspace);
- list_free(state->output->workspaces);
+ free_workspaces(state->output->workspaces);
}
state->output->workspaces = create_list();