Merge pull request #3167 from younata/no_data_copy_in_decoding
Don't unnecessarily copy image data in the Download Operation
This commit is contained in:
commit
f9b80167f4
|
@ -452,7 +452,7 @@ didReceiveResponse:(NSURLResponse *)response
|
|||
[self done];
|
||||
} else {
|
||||
if ([self callbacksForKey:kCompletedCallbackKey].count > 0) {
|
||||
NSData *imageData = [self.imageData copy];
|
||||
NSData *imageData = self.imageData;
|
||||
self.imageData = nil;
|
||||
// data decryptor
|
||||
if (imageData && self.decryptor) {
|
||||
|
|
Loading…
Reference in New Issue