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