Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged r4121:4122 from branches/SDL-1.2: win32 joystick double-free fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 6, 2010
1 parent f67ed21 commit 152941f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/joystick/win32/SDL_mmjoystick.c
Expand Up @@ -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;
}
}

Expand All @@ -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;
}
}
}
Expand Down

0 comments on commit 152941f

Please sign in to comment.