From b2909fb2da513019da200ae33b51ba51b03564fb Mon Sep 17 00:00:00 2001 From: foxling Date: Mon, 4 Aug 2014 15:17:58 +0800 Subject: [PATCH] fix #610 --- SDWebImage/SDWebImageDownloaderOperation.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SDWebImage/SDWebImageDownloaderOperation.m b/SDWebImage/SDWebImageDownloaderOperation.m index 333e316..e53f9ec 100644 --- a/SDWebImage/SDWebImageDownloaderOperation.m +++ b/SDWebImage/SDWebImageDownloaderOperation.m @@ -228,8 +228,7 @@ const NSInteger totalSize = self.imageData.length; // Update the data source, we must pass ALL the data, not just the new bytes - CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL); - CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)self.imageData, totalSize == self.expectedSize); + CGImageSourceRef imageSource = CGImageSourceCreateWithData((__bridge CFDataRef)self.imageData, NULL); if (width + height == 0) { CFDictionaryRef properties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);