[pygtksourceview/gtksourcecompletion] Fixed memory leak in add_proposals
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygtksourceview/gtksourcecompletion] Fixed memory leak in add_proposals
- Date: Sun, 20 Sep 2009 21:25:13 +0000 (UTC)
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]