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

features/potocpav-newer-lines-2
Robert Edmonds ago%!(EXTRA string=1 year) committed by GitHub
parent 3c435c0297
commit da29b776ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      backends/imgui_impl_sdl3.cpp

@ -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…
Cancel
Save