From e357450419e008ed47265e4e7dd54f3ddb5c89f1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 19 Apr 2010 13:52:03 +0200 Subject: [PATCH] Call client_destroy when releasing it from session --- src/session.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index 676627c..33331fb 100644 --- a/src/session.c +++ b/src/session.c @@ -452,7 +452,11 @@ static void select_targets_callback(void *context, struct session_database *db) static void session_remove_clients(struct session *se) { while (se->clients) - client_remove_from_session(se->clients); + { + struct client *cl = se->clients; + client_remove_from_session(cl); + client_destroy(cl); + } } // Associates a set of clients with a session; -- 1.7.10.4