1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-27 17:10:57 +01:00

Backends: SDL3: Fix leak of SDL_GetGamepads() return value (#7381)

This commit is contained in:
Robert Edmonds 2024-03-11 10:04:56 +00:00 committed by GitHub
parent 3c435c0297
commit da29b776ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -609,6 +609,7 @@ static void ImGui_ImplSDL3_UpdateGamepads()
if (bd->GamepadMode == ImGui_ImplSDL3_GamepadMode_AutoFirst)
break;
}
SDL_free(sdl_gamepads);
bd->WantUpdateGamepadsList = false;
}