Non ARC fix
This commit is contained in:
parent
40524876e9
commit
7b941a0cb2
|
@ -159,7 +159,11 @@ NSString *const SDWebImageDownloadStopNotification = @"SDWebImageDownloadStopNot
|
||||||
|
|
||||||
// Update the data source, we must pass ALL the data, not just the new bytes
|
// Update the data source, we must pass ALL the data, not just the new bytes
|
||||||
CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL);
|
CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL);
|
||||||
|
#if __has_feature(objc_arc)
|
||||||
CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)imageData, totalSize == expectedSize);
|
CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)imageData, totalSize == expectedSize);
|
||||||
|
#else
|
||||||
|
CGImageSourceUpdateData(imageSource, (CFDataRef)imageData, totalSize == expectedSize);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (width + height == 0)
|
if (width + height == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue