Merge pull request #3304 from mmdock/patch-2

Don't copy image data
This commit is contained in:
Kinarobin 2021-11-26 10:07:39 +08:00 committed by GitHub
commit 8d558cb79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ didReceiveResponse:(NSURLResponse *)response
// Progressive decoding Only decode partial image, full image in `URLSession:task:didCompleteWithError:`
if (supportProgressive && !finished) {
// Get the image data
NSData *imageData = [self.imageData copy];
NSData *imageData = self.imageData;
// keep maximum one progressive decode process during download
if (self.coderQueue.operationCount == 0) {