Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo()
This commit is contained in:
1 parent
b05ea8e04e
commit
82d89ff4fb
1 file changed
+1
@@ -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