Navigation Menu

Skip to content

Commit

Permalink
iOS: Fixed pointer dereference after free.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Sep 21, 2015
1 parent 7805c1b commit 774b077
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/iphoneos/SDL_sysjoystick.m
Expand Up @@ -228,9 +228,6 @@
}
#endif /* SDL_JOYSTICK_MFI */

SDL_free(device->name);
SDL_free(device);

--numjoysticks;

#if !SDL_EVENTS_DISABLED
Expand All @@ -245,6 +242,9 @@
}
#endif /* !SDL_EVENTS_DISABLED */

SDL_free(device->name);
SDL_free(device);

return next;
}

Expand Down

0 comments on commit 774b077

Please sign in to comment.