Skip to content

Commit

Permalink
haiku: Fixed crash on quit if max number of joysticks was connected.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 7, 2017
1 parent b7b9190 commit 60f2848
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/joystick/haiku/SDL_haikujoystick.cc
Expand Up @@ -228,12 +228,12 @@ extern "C"
{
int i;

for (i = 0; SDL_joyport[i]; ++i) {
for (i = 0; i < SDL_SYS_numjoysticks; ++i) {
SDL_free(SDL_joyport[i]);
}
SDL_joyport[0] = NULL;

for (i = 0; SDL_joyname[i]; ++i) {
for (i = 0; i < SDL_SYS_numjoysticks; ++i) {
SDL_free(SDL_joyname[i]);
}
SDL_joyname[0] = NULL;
Expand Down

0 comments on commit 60f2848

Please sign in to comment.