X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Joystick.m;h=ae278b30b3094527adaee68d0efa9ba818df55be;hp=e729edb987a31ae5ba0ce7da0df439c1c58b7bd1;hb=c262a3d0972ba16257fd24a948ab04f528f80d33;hpb=16a7c0a04bd05f4012d5a97a53520802969cfc86 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; }