[pygtksourceview/gtksourcecompletion] Fixed memory leak in add_proposals



commit b291563712b98d5a9395c14eadd1b7da30219992
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sun Sep 20 23:23:56 2009 +0200

    Fixed memory leak in add_proposals

 gtksourceview2.override |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview2.override b/gtksourceview2.override
index e40cfa9..cc930a5 100644
--- a/gtksourceview2.override
+++ b/gtksourceview2.override
@@ -621,7 +621,9 @@ _wrap_gtk_source_completion_context_add_proposals(PyGObject *self,
 	                                            ret,
 	                                            py_finished == NULL ? TRUE : PyObject_IsTrue (py_finished));
 
-    
+    g_list_foreach(ret, (GFunc)g_object_unref, NULL);
+    g_list_free(ret);
+
 	Py_INCREF(Py_None);
     return Py_None;
 }



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