diff options
Diffstat (limited to 'Mac/Modules/app/_Appmodule.c')
-rw-r--r-- | Mac/Modules/app/_Appmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Modules/app/_Appmodule.c b/Mac/Modules/app/_Appmodule.c index 347cf5b..069c08f 100644 --- a/Mac/Modules/app/_Appmodule.c +++ b/Mac/Modules/app/_Appmodule.c @@ -69,7 +69,7 @@ int ThemeDrawingStateObj_Convert(PyObject *v, ThemeDrawingState *p_itself) static void ThemeDrawingStateObj_dealloc(ThemeDrawingStateObject *self) { /* Cleanup of self->ob_itself goes here */ - PyObject_Del(self); + self->ob_type->tp_free((PyObject *)self); } static PyObject *ThemeDrawingStateObj_SetThemeDrawingState(ThemeDrawingStateObject *_self, PyObject *_args) @@ -1818,6 +1818,7 @@ void init_App(void) PyDict_SetItemString(d, "Error", App_Error) != 0) return; ThemeDrawingState_Type.ob_type = &PyType_Type; + if (PyType_Ready(&ThemeDrawingState_Type) < 0) return; Py_INCREF(&ThemeDrawingState_Type); PyModule_AddObject(m, "ThemeDrawingState", (PyObject *)&ThemeDrawingState_Type); /* Backward-compatible name */ |