Fixed memory leak.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 05 Feb 2014 20:07:25 -0500
changeset 8178 d74974cacb9b
parent 8177 fa40b7b0a1c0
child 8179 48c90b62af13
Fixed memory leak.
src/haptic/darwin/SDL_syshaptic.c
--- a/src/haptic/darwin/SDL_syshaptic.c	Wed Feb 05 18:36:40 2014 -0500
+++ b/src/haptic/darwin/SDL_syshaptic.c	Wed Feb 05 20:07:25 2014 -0500
@@ -672,6 +672,7 @@
 
         /* Free the io_service_t */
         IOObjectRelease(item->dev);
+        SDL_free(item);
     }
     numhaptics = 0;
 }