• Sam Lantinga's avatar
    Fixed bug #638 · 5556bfb1
    Sam Lantinga authored
     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.
    
    --HG--
    branch : SDL-1.2
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403869
    5556bfb1
SDL_sysjoystick.c 30.5 KB