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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user