From 9cf8c49c39792fcab65f5bf78874933ad0e0b8a0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 5 Feb 2014 20:07:25 -0500 Subject: [PATCH] Fixed memory leak. --- src/haptic/darwin/SDL_syshaptic.c | 1 + 1 file changed, 1 insertion(+) 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; }