mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-06 09:56:26 +00:00
Fixed memory leak in XInput code
Fixes https://github.com/libsdl-org/SDL/issues/3597
This commit is contained in:
@@ -552,6 +552,12 @@ void SDL_XINPUT_JoystickClose(SDL_Joystick *joystick)
|
||||
|
||||
void SDL_XINPUT_JoystickQuit(void)
|
||||
{
|
||||
int iuserid;
|
||||
|
||||
for (iuserid = 0; iuserid < XUSER_MAX_COUNT; ++iuserid) {
|
||||
DelXInputDevice(iuserid);
|
||||
}
|
||||
|
||||
if (s_bXInputEnabled) {
|
||||
WIN_UnloadXInputDLL();
|
||||
}
|
||||
|
Reference in New Issue
Block a user