diff --git a/SDWebImage/SDWebImageDownloaderOperation.m b/SDWebImage/SDWebImageDownloaderOperation.m index 6c7dd55f..b8c78ba4 100644 --- a/SDWebImage/SDWebImageDownloaderOperation.m +++ b/SDWebImage/SDWebImageDownloaderOperation.m @@ -376,7 +376,9 @@ didReceiveResponse:(NSURLResponse *)response } } - CFRelease(imageSource); + if (imageSource) { + CFRelease(imageSource); + } } for (SDWebImageDownloaderProgressBlock progressBlock in [self callbacksForKey:kProgressCallbackKey]) {