diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c index aa843c758a9..fb0c21b02e8 100644 --- a/Mac/Modules/Nav.c +++ b/Mac/Modules/Nav.c @@ -309,7 +309,7 @@ static void navrr_dealloc(navrrobject *self) { NavDisposeReply(&self->itself); - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * diff --git a/Mac/Modules/calldll.c b/Mac/Modules/calldll.c index 8d130ceb7ee..e2c2e3ebeba 100644 --- a/Mac/Modules/calldll.c +++ b/Mac/Modules/calldll.c @@ -543,7 +543,7 @@ static void cdr_dealloc(self) cdrobject *self; { - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * @@ -631,7 +631,7 @@ cdc_dealloc(self) cdcobject *self; { Py_XDECREF(self->routine); - PyMem_DEL(self); + PyObject_DEL(self); } @@ -855,7 +855,7 @@ static void cdf_dealloc(self) cdfobject *self; { - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * diff --git a/Mac/Modules/ctbmodule.c b/Mac/Modules/ctbmodule.c index 129896e3e65..3dc8f0f5d89 100644 --- a/Mac/Modules/ctbmodule.c +++ b/Mac/Modules/ctbmodule.c @@ -186,7 +186,7 @@ ctbcm_dealloc(self) CMDispose(self->hdl); self->hdl = NULL; } - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * diff --git a/Mac/Modules/htmlrender/HtmlRendermodule.c b/Mac/Modules/htmlrender/HtmlRendermodule.c index 8015ab80c4a..08df21f3c34 100644 --- a/Mac/Modules/htmlrender/HtmlRendermodule.c +++ b/Mac/Modules/htmlrender/HtmlRendermodule.c @@ -83,7 +83,7 @@ static void HtmlObj_dealloc(self) HtmlObjectObject *self; { /* Cleanup of self->ob_itself goes here */ - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject *HtmlObj_HRDisposeReference(_self, _args) diff --git a/Mac/Modules/icgluemodule.c b/Mac/Modules/icgluemodule.c index 3061f9827f8..1368ff2490e 100644 --- a/Mac/Modules/icgluemodule.c +++ b/Mac/Modules/icgluemodule.c @@ -460,7 +460,7 @@ newiciobject(OSType creator) return NULL; if ((err=ICStart(&self->inst, creator)) != 0 ) { (void)PyMac_Error(err); - PyMem_DEL(self); + PyObject_DEL(self); return NULL; } return self; @@ -471,7 +471,7 @@ static void ici_dealloc(iciobject *self) { (void)ICStop(self->inst); - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c index 9179c3628ad..a251811a3a9 100644 --- a/Mac/Modules/macfsmodule.c +++ b/Mac/Modules/macfsmodule.c @@ -227,7 +227,7 @@ mfsa_dealloc(mfsaobject *self) } #endif - PyMem_DEL(self); + PyObject_DEL(self); } statichere PyTypeObject Mfsatype = { @@ -276,7 +276,7 @@ newmfsiobject(void) static void mfsi_dealloc(mfsiobject *self) { - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * @@ -700,7 +700,7 @@ newmfssobject(FSSpec *fss) static void mfss_dealloc(mfssobject *self) { - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * @@ -846,7 +846,7 @@ mfsr_compare(mfsrobject *v, mfsrobject *w) static void mfsr_dealloc(mfsrobject *self) { - PyMem_DEL(self); + PyObject_DEL(self); } statichere PyTypeObject Mfsrtype = { diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index cc838b8936c..671d67dea19 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -259,7 +259,7 @@ static void rf_dealloc(rfobject *self) { do_close(self); - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * diff --git a/Mac/Modules/macspeechmodule.c b/Mac/Modules/macspeechmodule.c index 9b6a1f71996..b8bed57fb42 100644 --- a/Mac/Modules/macspeechmodule.c +++ b/Mac/Modules/macspeechmodule.c @@ -117,7 +117,7 @@ sc_dealloc(self) scobject *self; { DisposeSpeechChannel(self->chan); - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * @@ -324,7 +324,7 @@ static void mv_dealloc(self) mvobject *self; { - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject * diff --git a/Mac/Modules/scrap/_Scrapmodule.c b/Mac/Modules/scrap/_Scrapmodule.c index cc48a811d54..4b3d86584bc 100644 --- a/Mac/Modules/scrap/_Scrapmodule.c +++ b/Mac/Modules/scrap/_Scrapmodule.c @@ -78,7 +78,7 @@ int ScrapObj_Convert(PyObject *v, ScrapRef *p_itself) static void ScrapObj_dealloc(ScrapObject *self) { /* Cleanup of self->ob_itself goes here */ - PyMem_DEL(self); + PyObject_DEL(self); } static PyObject *ScrapObj_GetScrapFlavorFlags(ScrapObject *_self, PyObject *_args)