src/haptic/linux/SDL_syshaptic.c
changeset 9266 f6355bfca853
parent 9251 198989b162d3
child 9360 c671d8ca48a1
--- a/src/haptic/linux/SDL_syshaptic.c	Thu Dec 04 21:33:59 2014 +0100
+++ b/src/haptic/linux/SDL_syshaptic.c	Thu Dec 04 21:41:30 2014 +0100
@@ -441,7 +441,7 @@
   open_err:
     close(fd);
     if (haptic->hwdata != NULL) {
-        free(haptic->hwdata);
+        SDL_free(haptic->hwdata);
         haptic->hwdata = NULL;
     }
     return -1;
@@ -959,7 +959,7 @@
     return 0;
 
   new_effect_err:
-    free(effect->hweffect);
+    SDL_free(effect->hweffect);
     effect->hweffect = NULL;
     return -1;
 }