Python 3: PyObject.ob_type is deeper in the structure; use the Py_TYPE

macro instead
This commit is contained in:
Houzéfa Abbasbhay 2014-12-01 11:10:18 +01:00 committed by Benjamin Dauvergne
parent 9137e81966
commit e315898e24
1 changed files with 1 additions and 1 deletions

View File

@ -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