projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix memory leak.
[enjoyable.git]
/
Joystick.m
diff --git
a/Joystick.m
b/Joystick.m
index
e729edb
..
ae278b3
100644
(file)
--- 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;
}