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:
parent
3c435c0297
commit
da29b776ee
@ -609,6 +609,7 @@ static void ImGui_ImplSDL3_UpdateGamepads()
|
||||
if (bd->GamepadMode == ImGui_ImplSDL3_GamepadMode_AutoFirst)
|
||||
break;
|
||||
}
|
||||
SDL_free(sdl_gamepads);
|
||||
bd->WantUpdateGamepadsList = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user