Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo()
parent
b05ea8e04e
commit
82d89ff4fb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue