Merge pull request #471 from PinchProject/hotfix/fast_enumeration_fix
The callbacksForURL: method in SDWebImageDownloader should return a copy of the mutable array!
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -208,7 +208,7 @@ static NSString *const kCompletedCallbackKey = @"completed"; | @@ -208,7 +208,7 @@ static NSString *const kCompletedCallbackKey = @"completed"; | ||
208 | { | 208 | { |
209 | callbacksForURL = self.URLCallbacks[url]; | 209 | callbacksForURL = self.URLCallbacks[url]; |
210 | }); | 210 | }); |
211 | - return callbacksForURL; | 211 | + return [callbacksForURL copy]; |
212 | } | 212 | } |
213 | 213 | ||
214 | - (void)removeCallbacksForURL:(NSURL *)url | 214 | - (void)removeCallbacksForURL:(NSURL *)url |
-
Please register or login to post a comment