mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-30 18:54:00 -04:00
Fixing memory leaks in controllers
This commit is contained in:
@@ -17,6 +17,11 @@ LogitechG203Controller::LogitechG203Controller(hid_device* dev_handle, const cha
|
||||
location = path;
|
||||
}
|
||||
|
||||
LogitechG203Controller::~LogitechG203Controller()
|
||||
{
|
||||
hid_close(dev);
|
||||
}
|
||||
|
||||
std::string LogitechG203Controller::GetDeviceLocation()
|
||||
{
|
||||
return("HID " + location);
|
||||
|
||||
Reference in New Issue
Block a user