Permalink
Browse files

Update MBProgressHUD.m

Cancel scheduled task when -done called to fix memory issues.
  • Loading branch information...
1 parent d775e8d commit 307ca57a4c46d36e3ef01b2b7be9322274374304 @liuyaodong liuyaodong committed Feb 25, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 MBProgressHUD.m
View
@@ -363,6 +363,7 @@ - (void)animationFinished:(NSString *)animationID finished:(BOOL)finished contex
}
- (void)done {
+ [NSObject cancelPreviousPerformRequestsWithTarget:self];
isFinished = YES;
self.alpha = 0.0f;
if (removeFromSuperViewOnHide) {

0 comments on commit 307ca57

Please sign in to comment.