mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Backends: SDL3: Fix leak of SDL_GetGamepads() return value (#7381)
This commit is contained in:
parent
3c435c0297
commit
da29b776ee
1 changed files with 1 additions and 0 deletions
|
|
@ -609,6 +609,7 @@ static void ImGui_ImplSDL3_UpdateGamepads()
|
||||||
if (bd->GamepadMode == ImGui_ImplSDL3_GamepadMode_AutoFirst)
|
if (bd->GamepadMode == ImGui_ImplSDL3_GamepadMode_AutoFirst)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
SDL_free(sdl_gamepads);
|
||||||
bd->WantUpdateGamepadsList = false;
|
bd->WantUpdateGamepadsList = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue