summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-23 22:46:01 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-04-23 22:46:01 (GMT)
commit033b79c483566661eda1a87a11f19619d1ff4046 (patch)
treee26c05a1dd88b4af2dc80b7681e3973dec1a50a4
parentf16951cffe9e4171769213bbe1aecec3d8f5200a (diff)
downloadcpython-033b79c483566661eda1a87a11f19619d1ff4046.zip
cpython-033b79c483566661eda1a87a11f19619d1ff4046.tar.gz
cpython-033b79c483566661eda1a87a11f19619d1ff4046.tar.bz2
Regenerated.
-rw-r--r--Mac/Modules/ae/_AEmodule.c2
-rw-r--r--Mac/Modules/app/_Appmodule.c2
-rwxr-xr-xMac/Modules/carbonevt/_CarbonEvtmodule.c16
-rw-r--r--Mac/Modules/cf/_CFmodule.c20
-rwxr-xr-xMac/Modules/cg/_CGmodule.c2
-rw-r--r--Mac/Modules/cm/_Cmmodule.c4
-rw-r--r--Mac/Modules/ctl/_Ctlmodule.c2
-rw-r--r--Mac/Modules/dlg/_Dlgmodule.c2
-rw-r--r--Mac/Modules/drag/_Dragmodule.c2
-rw-r--r--Mac/Modules/list/_Listmodule.c2
-rw-r--r--Mac/Modules/menu/_Menumodule.c2
-rw-r--r--Mac/Modules/mlte/_Mltemodule.c4
-rw-r--r--Mac/Modules/qd/_Qdmodule.c6
-rw-r--r--Mac/Modules/qdoffs/_Qdoffsmodule.c2
-rw-r--r--Mac/Modules/qt/_Qtmodule.c12
-rw-r--r--Mac/Modules/res/_Resmodule.c2
-rw-r--r--Mac/Modules/snd/_Sndmodule.c4
-rw-r--r--Mac/Modules/te/_TEmodule.c2
-rw-r--r--Mac/Modules/waste/wastemodule.c4
-rw-r--r--Mac/Modules/win/_Winmodule.c2
20 files changed, 47 insertions, 47 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c
index af88dd4..38c6bae 100644
--- a/Mac/Modules/ae/_AEmodule.c
+++ b/Mac/Modules/ae/_AEmodule.c
@@ -89,7 +89,7 @@ int AEDesc_Convert(PyObject *v, AEDesc *p_itself)
static void AEDesc_dealloc(AEDescObject *self)
{
AEDisposeDesc(&self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *AEDesc_AECoerceDesc(AEDescObject *_self, PyObject *_args)
diff --git a/Mac/Modules/app/_Appmodule.c b/Mac/Modules/app/_Appmodule.c
index 7105c7c..d853927 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 */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *ThemeDrawingStateObj_SetThemeDrawingState(ThemeDrawingStateObject *_self, PyObject *_args)
diff --git a/Mac/Modules/carbonevt/_CarbonEvtmodule.c b/Mac/Modules/carbonevt/_CarbonEvtmodule.c
index dca9d33..5dce28b 100755
--- a/Mac/Modules/carbonevt/_CarbonEvtmodule.c
+++ b/Mac/Modules/carbonevt/_CarbonEvtmodule.c
@@ -171,7 +171,7 @@ int EventRef_Convert(PyObject *v, EventRef *p_itself)
static void EventRef_dealloc(EventRefObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventRef_RetainEvent(EventRefObject *_self, PyObject *_args)
@@ -478,7 +478,7 @@ int EventQueueRef_Convert(PyObject *v, EventQueueRef *p_itself)
static void EventQueueRef_dealloc(EventQueueRefObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventQueueRef_PostEventToQueue(EventQueueRefObject *_self, PyObject *_args)
@@ -661,7 +661,7 @@ int EventLoopRef_Convert(PyObject *v, EventLoopRef *p_itself)
static void EventLoopRef_dealloc(EventLoopRefObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventLoopRef_QuitEventLoop(EventLoopRefObject *_self, PyObject *_args)
@@ -753,7 +753,7 @@ int EventLoopTimerRef_Convert(PyObject *v, EventLoopTimerRef *p_itself)
static void EventLoopTimerRef_dealloc(EventLoopTimerRefObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventLoopTimerRef_RemoveEventLoopTimer(EventLoopTimerRefObject *_self, PyObject *_args)
@@ -868,7 +868,7 @@ static void EventHandlerRef_dealloc(EventHandlerRefObject *self)
RemoveEventHandler(self->ob_itself);
Py_DECREF(self->ob_callback);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventHandlerRef_AddEventTypesToHandler(EventHandlerRefObject *_self, PyObject *_args)
@@ -1018,7 +1018,7 @@ int EventHandlerCallRef_Convert(PyObject *v, EventHandlerCallRef *p_itself)
static void EventHandlerCallRef_dealloc(EventHandlerCallRefObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventHandlerCallRef_CallNextEventHandler(EventHandlerCallRefObject *_self, PyObject *_args)
@@ -1113,7 +1113,7 @@ int EventTargetRef_Convert(PyObject *v, EventTargetRef *p_itself)
static void EventTargetRef_dealloc(EventTargetRefObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventTargetRef_InstallStandardEventHandler(EventTargetRefObject *_self, PyObject *_args)
@@ -1230,7 +1230,7 @@ int EventHotKeyRef_Convert(PyObject *v, EventHotKeyRef *p_itself)
static void EventHotKeyRef_dealloc(EventHotKeyRefObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *EventHotKeyRef_UnregisterEventHotKey(EventHotKeyRefObject *_self, PyObject *_args)
diff --git a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c
index d69fce7..373976d 100644
--- a/Mac/Modules/cf/_CFmodule.c
+++ b/Mac/Modules/cf/_CFmodule.c
@@ -163,7 +163,7 @@ static void CFTypeRefObj_dealloc(CFTypeRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFTypeRefObj_CFGetTypeID(CFTypeRefObject *_self, PyObject *_args)
@@ -402,7 +402,7 @@ static void CFArrayRefObj_dealloc(CFArrayRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFArrayRefObj_CFArrayCreateCopy(CFArrayRefObject *_self, PyObject *_args)
@@ -554,7 +554,7 @@ static void CFMutableArrayRefObj_dealloc(CFMutableArrayRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFMutableArrayRefObj_CFArrayRemoveValueAtIndex(CFMutableArrayRefObject *_self, PyObject *_args)
@@ -735,7 +735,7 @@ static void CFDictionaryRefObj_dealloc(CFDictionaryRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFDictionaryRefObj_CFDictionaryCreateCopy(CFDictionaryRefObject *_self, PyObject *_args)
@@ -869,7 +869,7 @@ static void CFMutableDictionaryRefObj_dealloc(CFMutableDictionaryRefObject *self
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFMutableDictionaryRefObj_CFDictionaryRemoveAllValues(CFMutableDictionaryRefObject *_self, PyObject *_args)
@@ -987,7 +987,7 @@ static void CFDataRefObj_dealloc(CFDataRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFDataRefObj_CFDataCreateCopy(CFDataRefObject *_self, PyObject *_args)
@@ -1139,7 +1139,7 @@ static void CFMutableDataRefObj_dealloc(CFMutableDataRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFMutableDataRefObj_CFDataSetLength(CFMutableDataRefObject *_self, PyObject *_args)
@@ -1358,7 +1358,7 @@ static void CFStringRefObj_dealloc(CFStringRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFStringRefObj_CFStringCreateWithSubstring(CFStringRefObject *_self, PyObject *_args)
@@ -2026,7 +2026,7 @@ static void CFMutableStringRefObj_dealloc(CFMutableStringRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFMutableStringRefObj_CFStringAppend(CFMutableStringRefObject *_self, PyObject *_args)
@@ -2355,7 +2355,7 @@ static void CFURLRefObj_dealloc(CFURLRefObject *self)
{
self->ob_freeit((CFTypeRef)self->ob_itself);
}
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CFURLRefObj_CFURLCreateData(CFURLRefObject *_self, PyObject *_args)
diff --git a/Mac/Modules/cg/_CGmodule.c b/Mac/Modules/cg/_CGmodule.c
index 9849cf7..69bd77c 100755
--- a/Mac/Modules/cg/_CGmodule.c
+++ b/Mac/Modules/cg/_CGmodule.c
@@ -241,7 +241,7 @@ int CGContextRefObj_Convert(PyObject *v, CGContextRef *p_itself)
static void CGContextRefObj_dealloc(CGContextRefObject *self)
{
CGContextRelease(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CGContextRefObj_CGContextSaveGState(CGContextRefObject *_self, PyObject *_args)
diff --git a/Mac/Modules/cm/_Cmmodule.c b/Mac/Modules/cm/_Cmmodule.c
index d148f77..d0da473 100644
--- a/Mac/Modules/cm/_Cmmodule.c
+++ b/Mac/Modules/cm/_Cmmodule.c
@@ -102,7 +102,7 @@ int CmpInstObj_Convert(PyObject *v, ComponentInstance *p_itself)
static void CmpInstObj_dealloc(ComponentInstanceObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CmpInstObj_CloseComponent(ComponentInstanceObject *_self, PyObject *_args)
@@ -384,7 +384,7 @@ int CmpObj_Convert(PyObject *v, Component *p_itself)
static void CmpObj_dealloc(ComponentObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CmpObj_UnregisterComponent(ComponentObject *_self, PyObject *_args)
diff --git a/Mac/Modules/ctl/_Ctlmodule.c b/Mac/Modules/ctl/_Ctlmodule.c
index cf1c459..c9a8aa4 100644
--- a/Mac/Modules/ctl/_Ctlmodule.c
+++ b/Mac/Modules/ctl/_Ctlmodule.c
@@ -183,7 +183,7 @@ static void CtlObj_dealloc(ControlObject *self)
{
Py_XDECREF(self->ob_callbackdict);
if (self->ob_itself)SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *CtlObj_HiliteControl(ControlObject *_self, PyObject *_args)
diff --git a/Mac/Modules/dlg/_Dlgmodule.c b/Mac/Modules/dlg/_Dlgmodule.c
index d118e11..4a7e18d 100644
--- a/Mac/Modules/dlg/_Dlgmodule.c
+++ b/Mac/Modules/dlg/_Dlgmodule.c
@@ -179,7 +179,7 @@ int DlgObj_Convert(PyObject *v, DialogPtr *p_itself)
static void DlgObj_dealloc(DialogObject *self)
{
DisposeDialog(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *DlgObj_DrawDialog(DialogObject *_self, PyObject *_args)
diff --git a/Mac/Modules/drag/_Dragmodule.c b/Mac/Modules/drag/_Dragmodule.c
index 8279325..357d7dc 100644
--- a/Mac/Modules/drag/_Dragmodule.c
+++ b/Mac/Modules/drag/_Dragmodule.c
@@ -84,7 +84,7 @@ int DragObj_Convert(PyObject *v, DragRef *p_itself)
static void DragObj_dealloc(DragObjObject *self)
{
Py_XDECREF(self->sendproc);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *DragObj_DisposeDrag(DragObjObject *_self, PyObject *_args)
diff --git a/Mac/Modules/list/_Listmodule.c b/Mac/Modules/list/_Listmodule.c
index 94e3bcf..85c4d61 100644
--- a/Mac/Modules/list/_Listmodule.c
+++ b/Mac/Modules/list/_Listmodule.c
@@ -150,7 +150,7 @@ static void ListObj_dealloc(ListObject *self)
#endif
SetListRefCon(self->ob_itself, (long)0);
if (self->ob_must_be_disposed && self->ob_itself) LDispose(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *ListObj_LAddColumn(ListObject *_self, PyObject *_args)
diff --git a/Mac/Modules/menu/_Menumodule.c b/Mac/Modules/menu/_Menumodule.c
index f46eb83..dd369c1 100644
--- a/Mac/Modules/menu/_Menumodule.c
+++ b/Mac/Modules/menu/_Menumodule.c
@@ -108,7 +108,7 @@ int MenuObj_Convert(PyObject *v, MenuHandle *p_itself)
static void MenuObj_dealloc(MenuObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *MenuObj_DisposeMenu(MenuObject *_self, PyObject *_args)
diff --git a/Mac/Modules/mlte/_Mltemodule.c b/Mac/Modules/mlte/_Mltemodule.c
index c159e07..ec512aa 100644
--- a/Mac/Modules/mlte/_Mltemodule.c
+++ b/Mac/Modules/mlte/_Mltemodule.c
@@ -125,7 +125,7 @@ int TXNObj_Convert(PyObject *v, TXNObject *p_itself)
static void TXNObj_dealloc(TXNObjectObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *TXNObj_TXNDeleteObject(TXNObjectObject *_self, PyObject *_args)
@@ -1366,7 +1366,7 @@ int TXNFontMenuObj_Convert(PyObject *v, TXNFontMenuObject *p_itself)
static void TXNFontMenuObj_dealloc(TXNFontMenuObjectObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *TXNFontMenuObj_TXNGetFontMenuHandle(TXNFontMenuObjectObject *_self, PyObject *_args)
diff --git a/Mac/Modules/qd/_Qdmodule.c b/Mac/Modules/qd/_Qdmodule.c
index e213f46..b174e02 100644
--- a/Mac/Modules/qd/_Qdmodule.c
+++ b/Mac/Modules/qd/_Qdmodule.c
@@ -202,7 +202,7 @@ int GrafObj_Convert(PyObject *v, GrafPtr *p_itself)
static void GrafObj_dealloc(GrafPortObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyMethodDef GrafObj_methods[] = {
@@ -433,7 +433,7 @@ static void BMObj_dealloc(BitMapObject *self)
{
Py_XDECREF(self->referred_object);
if (self->referred_bitmap) free(self->referred_bitmap);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *BMObj_getdata(BitMapObject *_self, PyObject *_args)
@@ -545,7 +545,7 @@ static PyObject *QDGA_New(void)
static void QDGA_dealloc(QDGlobalsAccessObject *self)
{
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyMethodDef QDGA_methods[] = {
diff --git a/Mac/Modules/qdoffs/_Qdoffsmodule.c b/Mac/Modules/qdoffs/_Qdoffsmodule.c
index 30588b1..2f951d1 100644
--- a/Mac/Modules/qdoffs/_Qdoffsmodule.c
+++ b/Mac/Modules/qdoffs/_Qdoffsmodule.c
@@ -73,7 +73,7 @@ int GWorldObj_Convert(PyObject *v, GWorldPtr *p_itself)
static void GWorldObj_dealloc(GWorldObject *self)
{
DisposeGWorld(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *GWorldObj_GetGWorldDevice(GWorldObject *_self, PyObject *_args)
diff --git a/Mac/Modules/qt/_Qtmodule.c b/Mac/Modules/qt/_Qtmodule.c
index eb4d501..1f6dbbb 100644
--- a/Mac/Modules/qt/_Qtmodule.c
+++ b/Mac/Modules/qt/_Qtmodule.c
@@ -130,7 +130,7 @@ int MovieCtlObj_Convert(PyObject *v, MovieController *p_itself)
static void MovieCtlObj_dealloc(MovieControllerObject *self)
{
DisposeMovieController(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *MovieCtlObj_MCSetMovie(MovieControllerObject *_self, PyObject *_args)
@@ -1164,7 +1164,7 @@ int TimeBaseObj_Convert(PyObject *v, TimeBase *p_itself)
static void TimeBaseObj_dealloc(TimeBaseObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *TimeBaseObj_DisposeTimeBase(TimeBaseObject *_self, PyObject *_args)
@@ -1615,7 +1615,7 @@ int UserDataObj_Convert(PyObject *v, UserData *p_itself)
static void UserDataObj_dealloc(UserDataObject *self)
{
DisposeUserData(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *UserDataObj_GetUserData(UserDataObject *_self, PyObject *_args)
@@ -1919,7 +1919,7 @@ int MediaObj_Convert(PyObject *v, Media *p_itself)
static void MediaObj_dealloc(MediaObject *self)
{
DisposeTrackMedia(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *MediaObj_LoadMediaIntoRam(MediaObject *_self, PyObject *_args)
@@ -3094,7 +3094,7 @@ int TrackObj_Convert(PyObject *v, Track *p_itself)
static void TrackObj_dealloc(TrackObject *self)
{
DisposeMovieTrack(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *TrackObj_LoadTrackIntoRam(TrackObject *_self, PyObject *_args)
@@ -4375,7 +4375,7 @@ int MovieObj_Convert(PyObject *v, Movie *p_itself)
static void MovieObj_dealloc(MovieObject *self)
{
DisposeMovie(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *MovieObj_MoviesTask(MovieObject *_self, PyObject *_args)
diff --git a/Mac/Modules/res/_Resmodule.c b/Mac/Modules/res/_Resmodule.c
index cd54cfc..2dbea6d 100644
--- a/Mac/Modules/res/_Resmodule.c
+++ b/Mac/Modules/res/_Resmodule.c
@@ -98,7 +98,7 @@ static void ResObj_dealloc(ResourceObject *self)
self->ob_freeit(self->ob_itself);
}
self->ob_itself = NULL;
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *ResObj_HomeResFile(ResourceObject *_self, PyObject *_args)
diff --git a/Mac/Modules/snd/_Sndmodule.c b/Mac/Modules/snd/_Sndmodule.c
index 69c8bfe..1308bba 100644
--- a/Mac/Modules/snd/_Sndmodule.c
+++ b/Mac/Modules/snd/_Sndmodule.c
@@ -90,7 +90,7 @@ static void SndCh_dealloc(SndChannelObject *self)
{
SndDisposeChannel(self->ob_itself, 1);
Py_XDECREF(self->ob_callback);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *SndCh_SndDoCommand(SndChannelObject *_self, PyObject *_args)
@@ -384,7 +384,7 @@ static void SPBObj_dealloc(SPBObject *self)
self->ob_thiscallback = 0;
Py_XDECREF(self->ob_completion);
Py_XDECREF(self->ob_interrupt);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyMethodDef SPBObj_methods[] = {
diff --git a/Mac/Modules/te/_TEmodule.c b/Mac/Modules/te/_TEmodule.c
index 382a1f8..c83eb84 100644
--- a/Mac/Modules/te/_TEmodule.c
+++ b/Mac/Modules/te/_TEmodule.c
@@ -100,7 +100,7 @@ int TEObj_Convert(PyObject *v, TEHandle *p_itself)
static void TEObj_dealloc(TEObject *self)
{
TEDispose(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *TEObj_TESetText(TEObject *_self, PyObject *_args)
diff --git a/Mac/Modules/waste/wastemodule.c b/Mac/Modules/waste/wastemodule.c
index acd8d57..0fd90d3 100644
--- a/Mac/Modules/waste/wastemodule.c
+++ b/Mac/Modules/waste/wastemodule.c
@@ -239,7 +239,7 @@ int WEOObj_Convert(PyObject *v, WEObjectReference *p_itself)
static void WEOObj_dealloc(WEOObject *self)
{
/* Cleanup of self->ob_itself goes here */
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *WEOObj_WEGetObjectType(WEOObject *_self, PyObject *_args)
@@ -456,7 +456,7 @@ int wasteObj_Convert(PyObject *v, WEReference *p_itself)
static void wasteObj_dealloc(wasteObject *self)
{
WEDispose(self->ob_itself);
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *wasteObj_WEGetText(wasteObject *_self, PyObject *_args)
diff --git a/Mac/Modules/win/_Winmodule.c b/Mac/Modules/win/_Winmodule.c
index 80e4040..250e4ed 100644
--- a/Mac/Modules/win/_Winmodule.c
+++ b/Mac/Modules/win/_Winmodule.c
@@ -120,7 +120,7 @@ static void WinObj_dealloc(WindowObject *self)
}
self->ob_itself = NULL;
self->ob_freeit = NULL;
- PyMem_DEL(self);
+ PyObject_Del(self);
}
static PyObject *WinObj_GetWindowOwnerCount(WindowObject *_self, PyObject *_args)