diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c index c4fce9ceb..e5a835aa6 100644 --- a/src/haptic/darwin/SDL_syshaptic.c +++ b/src/haptic/darwin/SDL_syshaptic.c @@ -672,6 +672,7 @@ SDL_SYS_HapticQuit(void) /* Free the io_service_t */ IOObjectRelease(item->dev); + SDL_free(item); } numhaptics = 0; }