Fix CFRelease on NULL if CGImageSourceRef create failed
Fix CFRelease on NULL if CGImageSourceRef create failed, this may happen on progressive download with wrong image data
This commit is contained in:
parent
49772b3bc9
commit
c7a444f4a7
|
@ -376,7 +376,9 @@ didReceiveResponse:(NSURLResponse *)response
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CFRelease(imageSource);
|
if (imageSource) {
|
||||||
|
CFRelease(imageSource);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (SDWebImageDownloaderProgressBlock progressBlock in [self callbacksForKey:kProgressCallbackKey]) {
|
for (SDWebImageDownloaderProgressBlock progressBlock in [self callbacksForKey:kProgressCallbackKey]) {
|
||||||
|
|
Loading…
Reference in New Issue