Don't copy image data
This commit is contained in:
parent
602af15947
commit
b02f6f9e45
|
@ -423,7 +423,7 @@ didReceiveResponse:(NSURLResponse *)response
|
||||||
// Progressive decoding Only decode partial image, full image in `URLSession:task:didCompleteWithError:`
|
// Progressive decoding Only decode partial image, full image in `URLSession:task:didCompleteWithError:`
|
||||||
if (supportProgressive && !finished) {
|
if (supportProgressive && !finished) {
|
||||||
// Get the image data
|
// Get the image data
|
||||||
NSData *imageData = [self.imageData copy];
|
NSData *imageData = self.imageData;
|
||||||
|
|
||||||
// keep maximum one progressive decode process during download
|
// keep maximum one progressive decode process during download
|
||||||
if (self.coderQueue.operationCount == 0) {
|
if (self.coderQueue.operationCount == 0) {
|
||||||
|
|
Loading…
Reference in New Issue