static void SMBus_dealloc(SMBus *self) { PyObject *ref = SMBus_close(self); Py_XDECREF(ref); self->ob_type->tp_free((PyObject *)self); }
static void SMBus_dealloc(SMBus *self) { PyObject *ref = SMBus_close(self); Py_XDECREF(ref); /*old python 2.7 declaration */ /*self->ob_type->tp_free((PyObject *)self);*/ Py_TYPE(self)->tp_free((PyObject*)self); }