diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-04 18:51:21 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-05 08:13:10 +0900 |
commit | 9314c45c418c97fa415ef86cf834c3c87499d100 (patch) | |
tree | c7e55cf1b9f5e92dc99773ab6320939face4c8d1 | |
parent | 785ed4383be2c781748c9f60e2d6460200a1abeb (diff) |
workspace_next_name: free targets later than these already found in order
-rw-r--r-- | sway/tree/workspace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index 2db06a31..51f0fcb4 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -191,6 +191,8 @@ char *workspace_next_name(const char *output_name) { free(target); target = _target; wlr_log(L_DEBUG, "Workspace: Found free name %s", _target); + } else { + free(_target); } } free(dup); |