aboutsummaryrefslogtreecommitdiff
path: root/sway/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/workspace.c')
-rw-r--r--sway/workspace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/workspace.c b/sway/workspace.c
index 80b67128..4c8bb62f 100644
--- a/sway/workspace.c
+++ b/sway/workspace.c
@@ -42,22 +42,22 @@ char *workspace_next_name(void) {
strcmp(target, "back_and_forth") == 0 ||
strcmp(target, "current") == 0)
{
- list_free(args);
+ free_flat_list(args);
continue;
}
// Make sure that the workspace doesn't already exist
if (workspace_by_name(target)) {
- list_free(args);
+ free_flat_list(args);
continue;
}
- list_free(args);
+ free_flat_list(args);
sway_log(L_DEBUG, "Workspace: Found free name %s", target);
return target;
}
- list_free(args);
+ free_flat_list(args);
}
// As a fall back, get the current number of active workspaces
// and return that + 1 for the next workspace's name