Merge pull request #1978 from dreampiggy/fix_CFRelease_crash
Fix CFRelease on NULL if CGImageSourceRef create failed
This commit is contained in:
commit
ff3b4ac9fd
|
@ -376,8 +376,10 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
}
|
||||
}
|
||||
|
||||
if (imageSource) {
|
||||
CFRelease(imageSource);
|
||||
}
|
||||
}
|
||||
|
||||
for (SDWebImageDownloaderProgressBlock progressBlock in [self callbacksForKey:kProgressCallbackKey]) {
|
||||
progressBlock(self.imageData.length, self.expectedSize, self.request.URL);
|
||||
|
|
Loading…
Reference in New Issue