Skip to content

Commit 2b9a9ec

Browse files
committed
Use PyMem_Free instead of PyMem_Del
1 parent 3db1f0c commit 2b9a9ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src_c/rwobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ pgRWops_ReleaseObject(SDL_RWops *context)
489489
Py_XDECREF(helper->read);
490490
Py_XDECREF(helper->close);
491491
Py_DECREF(fileobj);
492-
PyMem_Del(helper);
492+
PyMem_Free(helper);
493493
SDL_FreeRW(context);
494494
}
495495
else {

src_c/time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ _pg_remove_event_timer(pgEventObject *ev)
135135
else
136136
pg_event_timer = hunt->next;
137137
Py_DECREF(hunt->event);
138-
PyMem_Del(hunt);
138+
PyMem_Free(hunt);
139139
}
140140
/* Chances of it failing here are next to zero, dont do anything */
141141
SDL_UnlockMutex(timermutex);

0 commit comments

Comments
 (0)