From e315898e24795d9bd2df98f8930bce5635224e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Houz=C3=A9fa=20Abbasbhay?= Date: Mon, 1 Dec 2014 11:10:18 +0100 Subject: [PATCH] Python 3: PyObject.ob_type is deeper in the structure; use the Py_TYPE macro instead --- bindings/python/wrapper_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index a9312b7c..c15dc0de 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -485,7 +485,7 @@ PyGObjectPtr_dealloc(PyGObjectPtr *self) g_object_set_qdata_full(self->obj, lasso_wrapper_key, NULL, NULL); g_object_unref(self->obj); Py_XDECREF(self->typename); - self->ob_type->tp_free((PyObject*)self); + Py_TYPE(self)->tp_free((PyObject*)self); } static int