diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-10-16 20:47:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-10-16 20:47:31 +0200 |
commit | 413f60ff309da5643af73f59932e6deb763f6261 (patch) | |
tree | c5f0e7403e38b18582706fe11fad67e0b98a1e48 /src/gui | |
parent | 5f98f20c94345aea3f27e76cfca0ebbc52e6639f (diff) | |
download | weechat-413f60ff309da5643af73f59932e6deb763f6261.zip |
core: fix memory leak in completion
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui-completion.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c index 7a416eee3..6a796c823 100644 --- a/src/gui/gui-completion.c +++ b/src/gui/gui-completion.c @@ -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; + } } /* |