Authored by DreamPiggy
Committed by lizhuoli

Fix CFRelease on NULL if CGImageSourceRef create failed

Fix CFRelease on NULL if CGImageSourceRef create failed, this may happen on progressive download with wrong image data
... ... @@ -376,7 +376,9 @@ didReceiveResponse:(NSURLResponse *)response
}
}
CFRelease(imageSource);
if (imageSource) {
CFRelease(imageSource);
}
}
for (SDWebImageDownloaderProgressBlock progressBlock in [self callbacksForKey:kProgressCallbackKey]) {
... ...