diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-23 23:16:25 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-23 23:16:25 (GMT) |
commit | b734869f46cdbbfff231fdab49dc0ad4e3b45623 (patch) | |
tree | 54d71b8e166220f0c933ec78490a5a6eb850856d /Mac/Modules/ae/_AEmodule.c | |
parent | 74d93c81c190f9dfd7302e17536a49b8dd4f7da6 (diff) | |
download | cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.zip cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.gz cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.bz2 |
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
Diffstat (limited to 'Mac/Modules/ae/_AEmodule.c')
-rw-r--r-- | Mac/Modules/ae/_AEmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c index b5b4cd6..bcb24a7 100644 --- a/Mac/Modules/ae/_AEmodule.c +++ b/Mac/Modules/ae/_AEmodule.c @@ -94,7 +94,7 @@ int AEDesc_Convert(PyObject *v, AEDesc *p_itself) static void AEDesc_dealloc(AEDescObject *self) { AEDisposeDesc(&self->ob_itself); - PyObject_Del(self); + self->ob_type->tp_free((PyObject *)self); } static PyObject *AEDesc_AECoerceDesc(AEDescObject *_self, PyObject *_args) @@ -1434,6 +1434,7 @@ void init_AE(void) PyDict_SetItemString(d, "Error", AE_Error) != 0) return; AEDesc_Type.ob_type = &PyType_Type; + if (PyType_Ready(&AEDesc_Type) < 0) return; Py_INCREF(&AEDesc_Type); PyModule_AddObject(m, "AEDesc", (PyObject *)&AEDesc_Type); /* Backward-compatible name */ |