summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/notify.c b/notify.c
index dad50b94..33fea56c 100644
--- a/notify.c
+++ b/notify.c
@@ -125,7 +125,8 @@ notify_drain(void)
if (ne->session != NULL)
ne->session->references--;
if (ne->window != NULL)
- ne->window->references--;
+ window_remove_ref(ne->window);
+
TAILQ_REMOVE(&notify_queue, ne, entry);
free(ne);
}