Fix leaking the report items. CID 10880, 10881 and 10882.

This commit is contained in:
Michael Lotz
2011-12-05 02:53:15 +01:00
parent 500553860e
commit a395486027
@@ -115,6 +115,9 @@ JoystickProtocolHandler::JoystickProtocolHandler(HIDReport &report)
JoystickProtocolHandler::~JoystickProtocolHandler()
{
free(fCurrentValues.data);
free(fAxis);
free(fHats);
free(fButtons);
}