Issue #17162: Add PyType_GetSlot.

This commit is contained in:
Martin v. Löwis 2014-02-04 09:33:05 +01:00
parent 83bdfa08f7
commit ca7b04644c
6 changed files with 30 additions and 2 deletions

View file

@ -44,7 +44,7 @@ static void
Xxo_dealloc(XxoObject *self)
{
Py_XDECREF(self->x_attr);
PyObject_Del(self);
((freefunc)PyType_GetSlot(Py_TYPE(self), Py_tp_free))(self);
}
static PyObject *