summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
authornicm <nicm>2015-06-05 18:18:32 +0000
committernicm <nicm>2015-06-05 18:18:32 +0000
commit641a9cd3f591b0ace3ae9947ebe6ab889b641eed (patch)
treee11dd1d51c0d86d3191991cf5290dd00af61709b /notify.c
parent10e90ae01f53a67a1b7c3a2c498cefb73c6a23b4 (diff)
Similarly, for sessions use a callback to free rather than checking
every loop.
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notify.c b/notify.c
index 8dfbd6ba..b51a5e59 100644
--- a/notify.c
+++ b/notify.c
@@ -123,7 +123,7 @@ notify_drain(void)
if (ne->client != NULL)
server_client_unref(ne->client);
if (ne->session != NULL)
- ne->session->references--;
+ session_unref(ne->session);
if (ne->window != NULL)
window_remove_ref(ne->window);