Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo()

main
meyraud705 2024-02-05 12:54:23 +01:00 committed by Sam Lantinga
parent b05ea8e04e
commit 82d89ff4fb
1 changed files with 1 additions and 0 deletions

View File

@ -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;