mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-29 19:31:08 -04:00
Fixing memory leaks in controllers
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user