From 56e37487a81f07b4c8f409e72dea6c5b746de4b3 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Fri, 31 Aug 2012 09:22:08 +0000 Subject: Sync OpenBSD patchset 1165: 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 c3aab462..c78fbdf3 100644 --- a/notify.c +++ b/notify.c @@ -124,7 +124,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