Permalink
Browse files

Fixed a bug where the CAAnimation was not always removed from its lay…

…er causing a circular reference and a leak.
  • Loading branch information...
1 parent d21dca1 commit 3a1b48d414891ba18c878ae97cd100810dac0f1b @neror committed Mar 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/FTAnimationManager.m
View
2 Classes/FTAnimationManager.m
@@ -451,8 +451,8 @@ - (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)finished {
if([[theAnimation valueForKey:kFTAnimationType] isEqualToString:kFTAnimationTypeOut]) {
[targetView setHidden:YES];
- [targetView.layer removeAnimationForKey:[theAnimation valueForKey:kFTAnimationName]];
}
+ [targetView.layer removeAnimationForKey:[theAnimation valueForKey:kFTAnimationName]];
//Forward the delegate call
id callerDelegate = [theAnimation valueForKey:kFTAnimationCallerDelegateKey];

0 comments on commit 3a1b48d

Please sign in to comment.