Skip to content

Commit

Permalink
Merge pull request SDWebImage#985 from songfrank/master
Browse files Browse the repository at this point in the history
Bug fix:Collection <__NSArrayM: > was mutated while being enumerated
  • Loading branch information
bpoplauschi committed Mar 19, 2015
2 parents beabb18 + dad2a92 commit fb20630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SDWebImage/SDImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ - (NSData *)diskImageDataBySearchingAllPathsForKey:(NSString *)key {
return data;
}

for (NSString *path in self.customPaths) {
NSArray *customPaths = [self.customPaths copy];
for (NSString *path in customPaths) {
NSString *filePath = [self cachePathForKey:key inPath:path];
NSData *imageData = [NSData dataWithContentsOfFile:filePath];
if (imageData) {
Expand Down

0 comments on commit fb20630

Please sign in to comment.