From: Joe Wreschnig Date: Thu, 28 Feb 2013 19:33:46 +0000 (+0100) Subject: Fix memory leak. X-Git-Tag: version-1.0~85 X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=c262a3d0972ba16257fd24a948ab04f528f80d33;p=enjoyable.git Fix memory leak. --- 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; }