diff options
author | Zandr Martin <zandrmartin@gmail.com> | 2016-06-11 15:29:04 -0500 |
---|---|---|
committer | Zandr Martin <zandrmartin@gmail.com> | 2016-06-11 15:29:04 -0500 |
commit | 9ecb43ea3b772b7c0e088343b530ab374af3bb9e (patch) | |
tree | 3c429a61e9e56bd1adb7ac95f375ac78ae09e888 /sway | |
parent | 2298143d09ce8810d9772f95e1cb605fb6b08536 (diff) | |
download | sway-9ecb43ea3b772b7c0e088343b530ab374af3bb9e.tar.xz |
couple small fixes
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 819a70ce..766d2b23 100644 --- a/sway/config.c +++ b/sway/config.c @@ -101,6 +101,7 @@ static void pid_workspace_cleanup() { pw = config->pid_workspaces->items[i]; if (difftime(ts.tv_sec, *pw->time_added) >= PID_WORKSPACE_TIMEOUT) { + free_pid_workspace(config->pid_workspaces->items[i]); list_del(config->pid_workspaces, i); } } @@ -126,6 +127,7 @@ void pid_workspace_add(struct pid_workspace *pw) { list_pw = config->pid_workspaces->items[i]; if (pw->pid == list_pw->pid) { + free_pid_workspace(config->pid_workspaces->items[i]); list_del(config->pid_workspaces, i); } } |