Merge pull request #532 from pinumbernumber/master

Fix tiny memory leak
This commit is contained in:
Twinaphex 2014-02-04 14:47:04 -08:00
commit 53469563e8

View File

@ -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;
}