diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-08-08 02:33:51 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-08-08 02:33:51 -0700 |
commit | 74dfec27c6008968cc66a13792dfb02b29c231b6 (patch) | |
tree | d251e9936b5d68279b0701db1bc47c8825168679 /gi/pygi-ccallback.c | |
parent | dcf9111a86e01d66943909a0c9f21a181ccc38a6 (diff) | |
download | pygobject-74dfec27c6008968cc66a13792dfb02b29c231b6.tar.gz |
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
Diffstat (limited to 'gi/pygi-ccallback.c')
-rw-r--r-- | 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 f28487fc..98dd7732 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 |