[pygobject] Fix GCallback Python wrapper leak
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Fix GCallback Python wrapper leak
- Date: Fri, 8 Aug 2014 09:34:25 +0000 (UTC)
commit 74dfec27c6008968cc66a13792dfb02b29c231b6
Author: Simon Feltman <sfeltman src gnome org>
Date: Fri Aug 8 02:33:51 2014 -0700
Fix GCallback Python wrapper leak
The PyObject wrapper for GCallbacks was not calling tp_free in the custom
tp_dealloc class method.
https://bugzilla.gnome.org/show_bug.cgi?id=695130
gi/pygi-ccallback.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-ccallback.c b/gi/pygi-ccallback.c
index f28487f..98dd773 100644
--- a/gi/pygi-ccallback.c
+++ b/gi/pygi-ccallback.c
@@ -82,6 +82,8 @@ _ccallback_dealloc (PyGICCallback *self)
if (self->cache != NULL) {
pygi_callable_cache_free ( (PyGICallableCache *)self->cache);
}
+
+ Py_TYPE ((PyGObject *)self)->tp_free ((PyObject *)self);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]