Merge pull request #471 from PinchProject/hotfix/fast_enumeration_fix

The callbacksForURL: method in SDWebImageDownloader should return a copy of the mutable array!
This commit is contained in:
Olivier Poitrey 2013-08-13 05:51:31 -07:00
commit 9f1ac247e7
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ static NSString *const kCompletedCallbackKey = @"completed";
{ {
callbacksForURL = self.URLCallbacks[url]; callbacksForURL = self.URLCallbacks[url];
}); });
return callbacksForURL; return [callbacksForURL copy];
} }
- (void)removeCallbacksForURL:(NSURL *)url - (void)removeCallbacksForURL:(NSURL *)url