@@ -171,7 +171,7 @@ int EventRef_Convert(PyObject *v, EventRef *p_itself)
171171static void EventRef_dealloc (EventRefObject * self )
172172{
173173 /* Cleanup of self->ob_itself goes here */
174- PyMem_DEL (self );
174+ PyObject_Del (self );
175175}
176176
177177static PyObject * EventRef_RetainEvent (EventRefObject * _self , PyObject * _args )
@@ -478,7 +478,7 @@ int EventQueueRef_Convert(PyObject *v, EventQueueRef *p_itself)
478478static void EventQueueRef_dealloc (EventQueueRefObject * self )
479479{
480480 /* Cleanup of self->ob_itself goes here */
481- PyMem_DEL (self );
481+ PyObject_Del (self );
482482}
483483
484484static PyObject * EventQueueRef_PostEventToQueue (EventQueueRefObject * _self , PyObject * _args )
@@ -661,7 +661,7 @@ int EventLoopRef_Convert(PyObject *v, EventLoopRef *p_itself)
661661static void EventLoopRef_dealloc (EventLoopRefObject * self )
662662{
663663 /* Cleanup of self->ob_itself goes here */
664- PyMem_DEL (self );
664+ PyObject_Del (self );
665665}
666666
667667static PyObject * EventLoopRef_QuitEventLoop (EventLoopRefObject * _self , PyObject * _args )
@@ -753,7 +753,7 @@ int EventLoopTimerRef_Convert(PyObject *v, EventLoopTimerRef *p_itself)
753753static void EventLoopTimerRef_dealloc (EventLoopTimerRefObject * self )
754754{
755755 /* Cleanup of self->ob_itself goes here */
756- PyMem_DEL (self );
756+ PyObject_Del (self );
757757}
758758
759759static PyObject * EventLoopTimerRef_RemoveEventLoopTimer (EventLoopTimerRefObject * _self , PyObject * _args )
@@ -868,7 +868,7 @@ static void EventHandlerRef_dealloc(EventHandlerRefObject *self)
868868 RemoveEventHandler (self -> ob_itself );
869869 Py_DECREF (self -> ob_callback );
870870 }
871- PyMem_DEL (self );
871+ PyObject_Del (self );
872872}
873873
874874static PyObject * EventHandlerRef_AddEventTypesToHandler (EventHandlerRefObject * _self , PyObject * _args )
@@ -1018,7 +1018,7 @@ int EventHandlerCallRef_Convert(PyObject *v, EventHandlerCallRef *p_itself)
10181018static void EventHandlerCallRef_dealloc (EventHandlerCallRefObject * self )
10191019{
10201020 /* Cleanup of self->ob_itself goes here */
1021- PyMem_DEL (self );
1021+ PyObject_Del (self );
10221022}
10231023
10241024static PyObject * EventHandlerCallRef_CallNextEventHandler (EventHandlerCallRefObject * _self , PyObject * _args )
@@ -1113,7 +1113,7 @@ int EventTargetRef_Convert(PyObject *v, EventTargetRef *p_itself)
11131113static void EventTargetRef_dealloc (EventTargetRefObject * self )
11141114{
11151115 /* Cleanup of self->ob_itself goes here */
1116- PyMem_DEL (self );
1116+ PyObject_Del (self );
11171117}
11181118
11191119static PyObject * EventTargetRef_InstallStandardEventHandler (EventTargetRefObject * _self , PyObject * _args )
@@ -1230,7 +1230,7 @@ int EventHotKeyRef_Convert(PyObject *v, EventHotKeyRef *p_itself)
12301230static void EventHotKeyRef_dealloc (EventHotKeyRefObject * self )
12311231{
12321232 /* Cleanup of self->ob_itself goes here */
1233- PyMem_DEL (self );
1233+ PyObject_Del (self );
12341234}
12351235
12361236static PyObject * EventHotKeyRef_UnregisterEventHotKey (EventHotKeyRefObject * _self , PyObject * _args )
0 commit comments