diff options
author | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2013-06-28 09:58:19 -0700 |
---|---|---|
committer | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2013-06-28 09:58:19 -0700 |
commit | de51dd02d4c16d5c6bc89a2fe0e49ffda79f2a33 (patch) | |
tree | 3e0c9bc200fa096f37184746c65ab917459f656c /src/objc/imap/MCOIMAPFetchContentOperation.mm | |
parent | 29bc4a2eac587c83f1de1ecf5ee5dc2299452966 (diff) |
Fixed memory leak: operations were retained by the block they owned, which created a cycle reference.
Diffstat (limited to 'src/objc/imap/MCOIMAPFetchContentOperation.mm')
-rw-r--r-- | src/objc/imap/MCOIMAPFetchContentOperation.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPFetchContentOperation.mm b/src/objc/imap/MCOIMAPFetchContentOperation.mm index 984751c0..d5d4757d 100644 --- a/src/objc/imap/MCOIMAPFetchContentOperation.mm +++ b/src/objc/imap/MCOIMAPFetchContentOperation.mm @@ -57,6 +57,8 @@ typedef void (^CompletionType)(NSError *error, NSData * data); } else { _completionBlock([NSError mco_errorWithErrorCode:op->error()], nil); } + [_completionBlock release]; + _completionBlock = nil; } - (void) bodyProgress:(unsigned int)current maximum:(unsigned int)maximum |