diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-10-24 23:55:12 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2014-10-24 23:55:12 -0700 |
commit | 386f84abe048c4b37cef42195d612b480021df3f (patch) | |
tree | 99ed0ecf0a60706e88c295203b5c1d84836f0f80 /src/objc | |
parent | 46242b129d4e22a0d95a23263339cb273c98b44d (diff) |
Fixed crash, additional memory usage optimization
Diffstat (limited to 'src/objc')
-rw-r--r-- | src/objc/imap/MCOIMAPFetchContentOperation.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objc/imap/MCOIMAPFetchContentOperation.mm b/src/objc/imap/MCOIMAPFetchContentOperation.mm index 791307ca..9ca4c1c4 100644 --- a/src/objc/imap/MCOIMAPFetchContentOperation.mm +++ b/src/objc/imap/MCOIMAPFetchContentOperation.mm @@ -61,7 +61,7 @@ typedef void (^CompletionType)(NSError *error, NSData * data); nativeType *op = MCO_NATIVE_INSTANCE; if (op->error() == mailcore::ErrorNone) { - _completionBlock(nil, MCO_TO_OBJC(op->data())); + _completionBlock(nil, (NSData *) op->data()->destructiveNSData()); } else { _completionBlock([NSError mco_errorWithErrorCode:op->error()], nil); } |