Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merged r4121:4122 from branches/SDL-1.2: win32 joystick double-free fix.

  • Loading branch information
icculus committed Jan 6, 2010
1 parent f67ed21 commit 152941fe52e170a52bff7870f4ed62cfe5f17376
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/joystick/win32/SDL_mmjoystick.c
@@ -362,6 +362,7 @@ SDL_SYS_JoystickClose(SDL_Joystick * joystick)
if (joystick->hwdata != NULL) {
/* free system specific hardware data */
SDL_free(joystick->hwdata);
joystick->hwdata = NULL;
}
}

@@ -373,6 +374,7 @@ SDL_SYS_JoystickQuit(void)
for (i = 0; i < MAX_JOYSTICKS; i++) {
if (SYS_JoystickName[i] != NULL) {
SDL_free(SYS_JoystickName[i]);
SYS_JoystickName[i] = NULL;
}
}
}

0 comments on commit 152941f

Please sign in to comment.