Fix memory leak in SDL_UpdateSteamVirtualGamepadInfo()
(cherry picked from commit82d89ff4fb) (cherry picked from commita09b0b05eb)
This commit is contained in:
1 parent
fe297fc6d8
commit
d1b6d5f33d
1 file changed
+1
@@ -221,6 +221,7 @@ SDL_bool SDL_UpdateSteamVirtualGamepadInfo(void)
|
|||||||
if (slot >= 0) {
|
if (slot >= 0) {
|
||||||
AddVirtualGamepadInfo(slot, &info);
|
AddVirtualGamepadInfo(slot, &info);
|
||||||
}
|
}
|
||||||
|
SDL_free(info.name);
|
||||||
SDL_free(data);
|
SDL_free(data);
|
||||||
|
|
||||||
SDL_steam_virtual_gamepad_info_file_mtime = mtime;
|
SDL_steam_virtual_gamepad_info_file_mtime = mtime;
|
||||||
|
|||||||
Reference in new issue
Block a user