src/haptic/darwin/SDL_syshaptic.c
changeset 9266 f6355bfca853
parent 9147 6bf589c8d549
child 9548 2563cb778950
--- a/src/haptic/darwin/SDL_syshaptic.c	Thu Dec 04 21:33:59 2014 +0100
+++ b/src/haptic/darwin/SDL_syshaptic.c	Thu Dec 04 21:41:30 2014 +0100
@@ -551,7 +551,7 @@
     FFReleaseDevice(haptic->hwdata->device);
   creat_err:
     if (haptic->hwdata != NULL) {
-        free(haptic->hwdata);
+        SDL_free(haptic->hwdata);
         haptic->hwdata = NULL;
     }
     return -1;