Browse Source

Fixed memory leak.

Ryan C. Gordon 11 years ago
parent
commit
9cf8c49c39
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/haptic/darwin/SDL_syshaptic.c

+ 1 - 0
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;
 }