From b780cf634ec9f2dc4790a04f4c1b1cdd505c58c2 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:02:18 +0000 Subject: [project @ fpeters@0d.be-20071006155345-ses0l1suzq229qdq] fixed refcounting Original author: Frederic Peters Date: 2007-10-06 17:53:45.416000+02:00 --- bindings/lang_python_wrapper_top.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bindings/lang_python_wrapper_top.c') diff --git a/bindings/lang_python_wrapper_top.c b/bindings/lang_python_wrapper_top.c index d1d3713a..f3ef9380 100644 --- a/bindings/lang_python_wrapper_top.c +++ b/bindings/lang_python_wrapper_top.c @@ -14,6 +14,12 @@ static PyTypeObject PyGObjectPtrType; static void PyGObjectPtr_dealloc(PyGObjectPtr *self) { +#ifdef LASSO_DEBUG + fprintf(stderr, "dealloc (%p ptr to %p (type:%s, rc:%d))\n", + self, self->obj, + G_OBJECT_TYPE_NAME(self->obj), + self->obj->ref_count); +#endif g_object_unref(self->obj); self->ob_type->tp_free((PyObject*)self); } -- cgit