Fixing memory leaks in controllers
This commit is contained in:
parent
aa59c6132e
commit
dba814215d
165 changed files with 444 additions and 71 deletions
|
|
@ -20,7 +20,7 @@ DuckyKeyboardController::DuckyKeyboardController(hid_device* dev_handle, const c
|
|||
|
||||
DuckyKeyboardController::~DuckyKeyboardController()
|
||||
{
|
||||
|
||||
hid_close(dev);
|
||||
}
|
||||
|
||||
std::string DuckyKeyboardController::GetDeviceLocation()
|
||||
|
|
|
|||
|
|
@ -204,6 +204,8 @@ RGBController_DuckyKeyboard::~RGBController_DuckyKeyboard()
|
|||
delete zones[zone_index].matrix_map;
|
||||
}
|
||||
}
|
||||
|
||||
delete ducky;
|
||||
}
|
||||
|
||||
void RGBController_DuckyKeyboard::SetupZones()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue