From 413f60ff309da5643af73f59932e6deb763f6261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 16 Oct 2014 20:47:31 +0200 Subject: [PATCH] core: fix memory leak in completion --- src/gui/gui-completion.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; + } } /*