diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:02:18 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:02:18 +0000 |
| commit | b780cf634ec9f2dc4790a04f4c1b1cdd505c58c2 (patch) | |
| tree | aad898ed9510629cec45b2faf0e6b82e43a98587 /bindings/lang_python_wrapper_top.c | |
| parent | 43e43c94044154de6f1bb49ddcdb47fd63e82784 (diff) | |
| download | lasso-b780cf634ec9f2dc4790a04f4c1b1cdd505c58c2.tar.gz lasso-b780cf634ec9f2dc4790a04f4c1b1cdd505c58c2.tar.xz lasso-b780cf634ec9f2dc4790a04f4c1b1cdd505c58c2.zip | |
[project @ fpeters@0d.be-20071006155345-ses0l1suzq229qdq]
fixed refcounting
Original author: Frederic Peters <fpeters@0d.be>
Date: 2007-10-06 17:53:45.416000+02:00
Diffstat (limited to 'bindings/lang_python_wrapper_top.c')
| -rw-r--r-- | bindings/lang_python_wrapper_top.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |
