Fixing memory leaks in controllers
This commit is contained in:
parent
aa59c6132e
commit
dba814215d
165 changed files with 444 additions and 71 deletions
|
|
@ -22,7 +22,7 @@ HyperXAlloyOriginsController::HyperXAlloyOriginsController(hid_device* dev_handl
|
|||
|
||||
HyperXAlloyOriginsController::~HyperXAlloyOriginsController()
|
||||
{
|
||||
|
||||
hid_close(dev);
|
||||
}
|
||||
|
||||
std::string HyperXAlloyOriginsController::GetDeviceLocation()
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ HyperXKeyboardController::HyperXKeyboardController(hid_device* dev_handle, const
|
|||
|
||||
HyperXKeyboardController::~HyperXKeyboardController()
|
||||
{
|
||||
|
||||
hid_close(dev);
|
||||
}
|
||||
|
||||
std::string HyperXKeyboardController::GetDeviceLocation()
|
||||
|
|
|
|||
|
|
@ -213,6 +213,8 @@ RGBController_HyperXAlloyOrigins::~RGBController_HyperXAlloyOrigins()
|
|||
delete zones[zone_index].matrix_map;
|
||||
}
|
||||
}
|
||||
|
||||
delete hyperx;
|
||||
}
|
||||
|
||||
void RGBController_HyperXAlloyOrigins::SetupZones()
|
||||
|
|
|
|||
|
|
@ -252,6 +252,8 @@ RGBController_HyperXKeyboard::~RGBController_HyperXKeyboard()
|
|||
delete zones[zone_index].matrix_map;
|
||||
}
|
||||
}
|
||||
|
||||
delete hyperx;
|
||||
}
|
||||
|
||||
void RGBController_HyperXKeyboard::SetupZones()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue