summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-16 08:04:19 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-16 08:04:19 -0400
commit88c1607fb734b885b8419004058242639898d2d1 (patch)
tree8eff65a401395cc918c59e0ca4d0eca40809842c
parent199fbb8081bc51c71db0171d904dc551ad0e2c1a (diff)
shell: Remove lock/unlock listeners on shutdown
-rw-r--r--src/shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index a44074d..fc49d70 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -2539,6 +2539,9 @@ shell_destroy(struct wl_listener *listener, void *data)
if (shell->child.client)
wl_client_destroy(shell->child.client);
+ wl_list_remove(&shell->lock_listener.link);
+ wl_list_remove(&shell->unlock_listener.link);
+
free(shell->screensaver.path);
free(shell);
}