mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Free lists on get muc and private windows
This commit is contained in:
parent
a9c69670fa
commit
5c9dd2802a
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user