aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-30 09:13:05 +0200
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-30 11:17:53 +0200
commit1f8b6b86dddd8e584cb41a68b2692bdba59ac234 (patch)
treebbd5ca6f83c67a9aea2822a1bfb295d82e3bb36d
parent95d5c1e5ed2f36eefd57d8d02e3d7cc1f03b0bbf (diff)
Remove premature break
-rw-r--r--sway/workspace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/workspace.c b/sway/workspace.c
index 17b56416..82573d2e 100644
--- a/sway/workspace.c
+++ b/sway/workspace.c
@@ -100,10 +100,9 @@ char *workspace_next_name(const char *output_name) {
if (binding->order < order) {
order = binding->order;
+ free(target);
target = _target;
sway_log(L_DEBUG, "Workspace: Found free name %s", _target);
- free(dup);
- break;
}
}
free(dup);