Skip to content

Commit

Permalink
Non ARC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
igrampe authored and Olivier Poitrey committed Sep 6, 2012
1 parent 4052487 commit 7b941a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SDWebImage/SDWebImageDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7b941a0

Please sign in to comment.