mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo()
This commit is contained in:
@@ -219,6 +219,7 @@ SDL_bool SDL_UpdateSteamVirtualGamepadInfo(void)
|
||||
if (slot >= 0) {
|
||||
AddVirtualGamepadInfo(slot, &info);
|
||||
}
|
||||
SDL_free(info.name);
|
||||
SDL_free(data);
|
||||
|
||||
SDL_steam_virtual_gamepad_info_file_mtime = mtime;
|
||||
|
Reference in New Issue
Block a user