Skip to content
Permalink
Browse files

iOS: Fixed pointer dereference after free.

  • Loading branch information
philippwiesemann committed Sep 21, 2015
1 parent 7805c1b commit 774b07751314de950b5a635906979b7aa74c3b6f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/joystick/iphoneos/SDL_sysjoystick.m
@@ -228,9 +228,6 @@
}
#endif /* SDL_JOYSTICK_MFI */

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

--numjoysticks;

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

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

return next;
}

0 comments on commit 774b077

Please sign in to comment.