Don't copy image data

This commit is contained in:
Morgan Dock 2021-11-25 00:17:08 -06:00 committed by GitHub
parent 602af15947
commit b02f6f9e45
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) {