src/joystick/win32/SDL_dxjoystick.c
branchgsoc2008_force_feedback
changeset 2577 72b17d80b426
parent 2576 034440120c38
child 2579 bd2a6c70cb29
--- a/src/joystick/win32/SDL_dxjoystick.c	Thu Jul 31 17:15:36 2008 +0000
+++ b/src/joystick/win32/SDL_dxjoystick.c	Thu Jul 31 17:27:32 2008 +0000
@@ -215,7 +215,7 @@
 
     /* allocate memory for system specific hardware data */
     joystick->hwdata =
-        (struct joystick_hwdata *) malloc(sizeof(struct joystick_hwdata));
+        (struct joystick_hwdata *) SDL_malloc(sizeof(struct joystick_hwdata));
     if (joystick->hwdata == NULL) {
         SDL_OutOfMemory();
         return (-1);
@@ -635,7 +635,7 @@
 
     if (joystick->hwdata != NULL) {
         /* free system specific hardware data */
-        free(joystick->hwdata);
+       SDL_free(joystick->hwdata);
     }
 }