aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-02-09 22:08:47 +0000
committerJames Booth <boothj5@gmail.com>2015-02-09 22:08:47 +0000
commit5c9dd2802a6aefcaa67cbf03a65128b595b587c9 (patch)
treee3a9daeef598b601b8c4f591fe66fac2438519ac
parenta9c69670fa246fefb2095aac1b8cf9581e2cd67c (diff)
downloadprofani-tty-5c9dd2802a6aefcaa67cbf03a65128b595b587c9.tar.gz
Free lists on get muc and private windows
-rw-r--r--src/ui/windows.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}