1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix memory leak in completion

This commit is contained in:
Sébastien Helleu
2014-10-16 20:47:31 +02:00
parent 5f98f20c94
commit 413f60ff30
+5 -1
View File
@@ -183,7 +183,11 @@ gui_completion_free_data (struct t_gui_completion *completion)
free (completion->word_found);
completion->word_found = NULL;
arraylist_clear (completion->partial_list);
if (completion->partial_list)
{
arraylist_free (completion->partial_list);
completion->partial_list = NULL;
}
}
/*