Bug fix:Collection <__NSArrayM: > was mutated while being enumerated
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -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) { |
-
Please register or login to post a comment