Free lists on get muc and private windows
This commit is contained in:
@@ -132,6 +132,7 @@ wins_get_muc(const char * const roomjid)
|
|||||||
if (window->type == WIN_MUC) {
|
if (window->type == WIN_MUC) {
|
||||||
ProfMucWin *mucwin = (ProfMucWin*)window;
|
ProfMucWin *mucwin = (ProfMucWin*)window;
|
||||||
if (g_strcmp0(mucwin->roomjid, roomjid) == 0) {
|
if (g_strcmp0(mucwin->roomjid, roomjid) == 0) {
|
||||||
|
g_list_free(values);
|
||||||
return mucwin;
|
return mucwin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -153,6 +154,7 @@ wins_get_private(const char * const fulljid)
|
|||||||
if (window->type == WIN_PRIVATE) {
|
if (window->type == WIN_PRIVATE) {
|
||||||
ProfPrivateWin *privatewin = (ProfPrivateWin*)window;
|
ProfPrivateWin *privatewin = (ProfPrivateWin*)window;
|
||||||
if (g_strcmp0(privatewin->fulljid, fulljid) == 0) {
|
if (g_strcmp0(privatewin->fulljid, fulljid) == 0) {
|
||||||
|
g_list_free(values);
|
||||||
return privatewin;
|
return privatewin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user