Skip to content

Commit d54e11c

Browse files
author
Dominik Hadl
committed
Fixing a leak in CCControl
Former-commit-id: 41ba349
1 parent 241e56f commit d54e11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d-ui/CCControl.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ - (id) init
5959

6060
- (void) setTarget:(id)target selector:(SEL)selector
6161
{
62-
__unsafe_unretained id weakTarget = target; // avoid retain cycle
62+
__weak id weakTarget = target; // avoid retain cycle
6363
[self setBlock:^(id sender) {
6464
objc_msgSend(weakTarget, selector, sender);
6565
}];

0 commit comments

Comments
 (0)