From c262a3d0972ba16257fd24a948ab04f528f80d33 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Thu, 28 Feb 2013 20:33:46 +0100 Subject: [PATCH] Fix memory leak. --- Joystick.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Joystick.m b/Joystick.m index e729edb..ae278b3 100644 --- a/Joystick.m +++ b/Joystick.m @@ -55,6 +55,8 @@ static NSArray *ActionsForElement(IOHIDDeviceRef device, id base) { action.cookie = IOHIDElementGetCookie(element); [children addObject:action]; } + + CFRelease(elements); return children; } -- 2.30.2