workspace_next_name: free targets later than these already found in order

This commit is contained in:
Dominique Martinet 2018-07-04 18:51:21 +09:00
parent 785ed4383b
commit 9314c45c41

View file

@ -191,6 +191,8 @@ char *workspace_next_name(const char *output_name) {
free(target); free(target);
target = _target; target = _target;
wlr_log(L_DEBUG, "Workspace: Found free name %s", _target); wlr_log(L_DEBUG, "Workspace: Found free name %s", _target);
} else {
free(_target);
} }
} }
free(dup); free(dup);