Fixing memory leaks in controllers

This commit is contained in:
morg
2021-02-05 12:37:17 +01:00
parent aa59c6132e
commit dba814215d
165 changed files with 444 additions and 71 deletions

View File

@@ -31,6 +31,11 @@ SonyDS4Controller::SonyDS4Controller(hid_device * device_handle, const char * de
location = device_path;
}
SonyDS4Controller::~SonyDS4Controller()
{
hid_close(device_handle);
}
std::string SonyDS4Controller::GetLocation()
{
return("HID: " + location);