Merge pull request #985 from songfrank/master

Bug fix:Collection <__NSArrayM: > was mutated while being enumerated
This commit is contained in:
Bogdan Poplauschi 2015-03-19 11:57:15 +02:00
commit fb2063086d
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ BOOL ImageDataHasPNGPreffix(NSData *data) {
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) {