Authored by sfeng

Bug fix:Collection <__NSArrayM: > was mutated while being enumerated

@@ -248,7 +248,8 @@ BOOL ImageDataHasPNGPreffix(NSData *data) { @@ -248,7 +248,8 @@ BOOL ImageDataHasPNGPreffix(NSData *data) {
248 return data; 248 return data;
249 } 249 }
250 250
251 - for (NSString *path in self.customPaths) { 251 + NSArray *customPaths = [self.customPaths copy];
  252 + for (NSString *path in customPaths) {
252 NSString *filePath = [self cachePathForKey:key inPath:path]; 253 NSString *filePath = [self cachePathForKey:key inPath:path];
253 NSData *imageData = [NSData dataWithContentsOfFile:filePath]; 254 NSData *imageData = [NSData dataWithContentsOfFile:filePath];
254 if (imageData) { 255 if (imageData) {