mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Merge pull request #532 from pinumbernumber/master
Fix tiny memory leak
This commit is contained in:
commit
53469563e8
@ -664,10 +664,14 @@ static bool guid_is_xinput_device(const GUID* product_guid)
|
||||
(GetRawInputDeviceInfoA(raw_devs[i].hDevice, RIDI_DEVICENAME, devName, &nameSize) != ((UINT)-1)) &&
|
||||
(strstr(devName, "IG_") != NULL) )
|
||||
{
|
||||
free(raw_devs);
|
||||
raw_devs = NULL;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
free(raw_devs);
|
||||
raw_devs = NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user