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

@@ -8,6 +8,11 @@ LogitechG203LController::LogitechG203LController(hid_device* dev_handle, const c
location = path;
}
LogitechG203LController::~LogitechG203LController()
{
hid_close(dev);
}
std::string LogitechG203LController::GetDeviceLocation()
{
return("HID: " + location);