1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Free lists on get muc and private windows

This commit is contained in:
James Booth 2015-02-09 22:08:47 +00:00
parent a9c69670fa
commit 5c9dd2802a

View File

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