mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
fix tiny leak
This commit is contained in:
parent
89396231c5
commit
ecdf175006
@ -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