Merge pull request #1464 from Brain89/fixDecodedImageWithImage(1423)

[fix] Issue #1423
This commit is contained in:
Konstantinos K 2016-03-25 12:47:52 +02:00
commit 09556f2d21
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; }