[gtksourceview] Free proposals list in word completion provider



commit 14c38f932c3841d8d5291e6fa73277280571f745
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Sun Jan 23 16:54:40 2011 +0100

    Free proposals list in word completion provider
    
    Potential cause of large memory leak.

 .../words/gtksourcecompletionwords.c               |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index 1ebfbc3..4d78dfb 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -173,7 +173,9 @@ add_in_idle (GtkSourceCompletionWords *words)
 	                                             GTK_SOURCE_COMPLETION_PROVIDER (words),
 	                                             ret,
 	                                             finished);
-	
+
+	g_list_free (ret);
+
 	if (finished)
 	{
 		gtk_source_completion_words_library_unlock (words->priv->library);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]