Similarly, for sessions use a callback to free rather than checking

every loop.
This commit is contained in:
nicm
2015-06-05 18:18:32 +00:00
parent 10e90ae01f
commit 641a9cd3f5
5 changed files with 32 additions and 28 deletions

View File

@ -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);