summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-08-31 09:22:08 +0000
committerTiago Cunha <tcunha@gmx.com>2012-08-31 09:22:08 +0000
commit56e37487a81f07b4c8f409e72dea6c5b746de4b3 (patch)
tree224cea806ff14efaa70bff628a268c5572a5c7ea /notify.c
parent674545f7e6fc703a809d60b572e1a99d0777d6f2 (diff)
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.
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 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(&notify_queue, ne, entry);
free(ne);
}