From 7b941a0cb2951d731794ba9e259897ecb077cd72 Mon Sep 17 00:00:00 2001 From: Sema Belokovsky Date: Sun, 12 Aug 2012 23:45:52 +0600 Subject: [PATCH] Non ARC fix --- SDWebImage/SDWebImageDownloader.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SDWebImage/SDWebImageDownloader.m b/SDWebImage/SDWebImageDownloader.m index a05e1815..855e9c0d 100644 --- a/SDWebImage/SDWebImageDownloader.m +++ b/SDWebImage/SDWebImageDownloader.m @@ -159,7 +159,11 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot // Update the data source, we must pass ALL the data, not just the new bytes CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL); - CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)imageData, totalSize == expectedSize); +#if __has_feature(objc_arc) + CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)imageData, totalSize == expectedSize); +#else + CGImageSourceUpdateData(imageSource, (CFDataRef)imageData, totalSize == expectedSize); +#endif if (width + height == 0) {