This commit is contained in:
Aleksandr Sychev 2016-02-15 18:45:57 +03:00
parent e7fa11058b
commit 974141f5a2
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@
// when there are memory warning.
// on iOS7, do not forget to call
// [[SDImageCache sharedImageCache] clearMemory];
if (image == nil) { // Prevent "CGBitmapContextCreateImage: invalid context 0x0" error
return nil;
}
@autoreleasepool{
// do not decode animated images
if (image.images) { return image; }