Commit 9cf8c49c39792fcab65f5bf78874933ad0e0b8a0

Ryan C. Gordon 2014-02-05T20:07:25

Fixed memory leak.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c
index c4fce9c..e5a835a 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;
 }