From 58e8e0eac841d6d337de3da4e2f81665c3cd3faa Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 21 Aug 2012 10:00:33 +0000 Subject: Fix up window reference counting and don't crash if the rename timer fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz. --- notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'notify.c') 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(¬ify_queue, ne, entry); free(ne); } -- cgit v1.2.3