diff options
| author | James Booth <boothj5@gmail.com> | 2015-02-09 22:08:47 +0000 |
|---|---|---|
| committer | James Booth <boothj5@gmail.com> | 2015-02-09 22:08:47 +0000 |
| commit | 5c9dd2802a6aefcaa67cbf03a65128b595b587c9 (patch) | |
| tree | e3a9daeef598b601b8c4f591fe66fac2438519ac | |
| parent | a9c69670fa246fefb2095aac1b8cf9581e2cd67c (diff) | |
| download | profani-tty-5c9dd2802a6aefcaa67cbf03a65128b595b587c9.tar.gz | |
Free lists on get muc and private windows
| -rw-r--r-- | src/ui/windows.c | 2 |
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; } } |