mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 19:38:14 +00:00
5363 - Memory leak of joystick->sensors in SDL_JoystickClose
Mathieu Eyraud Joystick->sensors is never freed.
This commit is contained in:
@@ -1036,6 +1036,7 @@ SDL_JoystickClose(SDL_Joystick *joystick)
|
|||||||
SDL_free(touchpad->fingers);
|
SDL_free(touchpad->fingers);
|
||||||
}
|
}
|
||||||
SDL_free(joystick->touchpads);
|
SDL_free(joystick->touchpads);
|
||||||
|
SDL_free(joystick->sensors);
|
||||||
SDL_free(joystick);
|
SDL_free(joystick);
|
||||||
|
|
||||||
SDL_UnlockJoysticks();
|
SDL_UnlockJoysticks();
|
||||||
|
Reference in New Issue
Block a user