Fix leaking the report items. CID 10880, 10881 and 10882.
This commit is contained in:
@@ -115,6 +115,9 @@ JoystickProtocolHandler::JoystickProtocolHandler(HIDReport &report)
|
|||||||
JoystickProtocolHandler::~JoystickProtocolHandler()
|
JoystickProtocolHandler::~JoystickProtocolHandler()
|
||||||
{
|
{
|
||||||
free(fCurrentValues.data);
|
free(fCurrentValues.data);
|
||||||
|
free(fAxis);
|
||||||
|
free(fHats);
|
||||||
|
free(fButtons);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user