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:
commit
9f1ac247e7
|
@ -208,7 +208,7 @@ static NSString *const kCompletedCallbackKey = @"completed";
|
|||
{
|
||||
callbacksForURL = self.URLCallbacks[url];
|
||||
});
|
||||
return callbacksForURL;
|
||||
return [callbacksForURL copy];
|
||||
}
|
||||
|
||||
- (void)removeCallbacksForURL:(NSURL *)url
|
||||
|
|
Loading…
Reference in New Issue