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) { while (curr != NULL) {
ProfWin *window = curr->data; ProfWin *window = curr->data;
if (window->type == WIN_XML) if (window->type == WIN_XML) {
g_list_free(values);
return TRUE; return TRUE;
}
curr = g_list_next(curr); curr = g_list_next(curr);
} }
g_list_free(values);
return FALSE; return FALSE;
} }