# HG changeset patch # User Edgar Simo # Date 1217525252 0 # Node ID 72b17d80b42686a9a0effc97e7ebcc57762f3925 # Parent 034440120c389fae3d5dc2f48082dc82197c882c Fixed some lone malloc and free. diff -r 034440120c38 -r 72b17d80b426 src/joystick/win32/SDL_dxjoystick.c --- 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); } }