mirror of
https://github.com/yawut/SDL.git
synced 2026-07-18 17:01:19 -05:00
Fixed bug 3512 - Memory leak of SDL_Joystick axes_zero array
Benjamin Harris Found with valgrind and confirmed in the 2.0.5 source code. One-line fix in SDL_JoystickClose?
This commit is contained in:
parent
4292a15aca
commit
a2c540e172
|
|
@ -486,6 +486,7 @@ SDL_JoystickClose(SDL_Joystick * joystick)
|
|||
|
||||
/* Free the data associated with this joystick */
|
||||
SDL_free(joystick->axes);
|
||||
SDL_free(joystick->axes_zero);
|
||||
SDL_free(joystick->hats);
|
||||
SDL_free(joystick->balls);
|
||||
SDL_free(joystick->buttons);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user