Permalink
Browse files

Non ARC fix

  • Loading branch information...
1 parent 4052487 commit 7b941a0cb2951d731794ba9e259897ecb077cd72 @igrampe igrampe committed with Aug 12, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 SDWebImage/SDWebImageDownloader.m
@@ -159,7 +159,11 @@ - (void)connection:(NSURLConnection *)aConnection didReceiveData:(NSData *)data
// 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)
{

0 comments on commit 7b941a0

Please sign in to comment.