mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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)) &&
|
(GetRawInputDeviceInfoA(raw_devs[i].hDevice, RIDI_DEVICENAME, devName, &nameSize) != ((UINT)-1)) &&
|
||||||
(strstr(devName, "IG_") != NULL) )
|
(strstr(devName, "IG_") != NULL) )
|
||||||
{
|
{
|
||||||
|
free(raw_devs);
|
||||||
|
raw_devs = NULL;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(raw_devs);
|
||||||
|
raw_devs = NULL;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user