From 5c9dd2802a6aefcaa67cbf03a65128b595b587c9 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 9 Feb 2015 22:08:47 +0000 Subject: [PATCH] Free lists on get muc and private windows --- src/ui/windows.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/windows.c b/src/ui/windows.c index 5993df19..3132902f 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -132,6 +132,7 @@ wins_get_muc(const char * const roomjid) if (window->type == WIN_MUC) { ProfMucWin *mucwin = (ProfMucWin*)window; if (g_strcmp0(mucwin->roomjid, roomjid) == 0) { + g_list_free(values); return mucwin; } } @@ -153,6 +154,7 @@ wins_get_private(const char * const fulljid) if (window->type == WIN_PRIVATE) { ProfPrivateWin *privatewin = (ProfPrivateWin*)window; if (g_strcmp0(privatewin->fulljid, fulljid) == 0) { + g_list_free(values); return privatewin; } }