Fixed bug #638
authorslouken <slouken@c70aab31-4412-0410-b14c-859654838e24>
Mon, 21 Sep 2009 11:34:50 +0000 (11:34 +0000)
committerslouken <slouken@c70aab31-4412-0410-b14c-859654838e24>
Mon, 21 Sep 2009 11:34:50 +0000 (11:34 +0000)
commite840a68e1fbf3d898e1c712eacce03fd7c840fd2
treefb46f7b92d21b33a48319adee87056aeb2a5b038
parentb03e5f923f2e40e296dcc0fda20c206a0f17ba9d
Fixed bug #638

 Philipp Nordhus      2008-11-05 13:56:33 PST

The Linux version of SDL_SYS_JoystickQuit() tries to free an invalid pointer
when the number of joysticks was reduced since the last call.

Reproduce: Connect two joysticks, call SDL_Init() and SDL_Quit(), then
disconnect one joystick and call the functions again.

git-svn-id: http://svn.libsdl.org/branches/SDL-1.2@4793 c70aab31-4412-0410-b14c-859654838e24
src/joystick/linux/SDL_sysjoystick.c