1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Fixed memleak in wins_xmlconsole_exists

This commit is contained in:
James Booth 2014-06-15 17:43:16 +01:00
parent b9b5d6a5f8
commit 45e3b25fab

View File

@ -305,11 +305,14 @@ wins_xmlconsole_exists(void)
while (curr != NULL) {
ProfWin *window = curr->data;
if (window->type == WIN_XML)
if (window->type == WIN_XML) {
g_list_free(values);
return TRUE;
}
curr = g_list_next(curr);
}
g_list_free(values);
return FALSE;
}