mirror of https://github.com/ocornut/imgui
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