diff options
author | 2013-06-28 09:58:19 -0700 | |
---|---|---|
committer | 2013-06-28 09:58:19 -0700 | |
commit | de51dd02d4c16d5c6bc89a2fe0e49ffda79f2a33 (patch) | |
tree | 3e0c9bc200fa096f37184746c65ab917459f656c /src/objc/imap/MCOIMAPAppendMessageOperation.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/MCOIMAPAppendMessageOperation.mm')
-rw-r--r-- | src/objc/imap/MCOIMAPAppendMessageOperation.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/objc/imap/MCOIMAPAppendMessageOperation.mm b/src/objc/imap/MCOIMAPAppendMessageOperation.mm index 16463016..c281b925 100644 --- a/src/objc/imap/MCOIMAPAppendMessageOperation.mm +++ b/src/objc/imap/MCOIMAPAppendMessageOperation.mm @@ -57,6 +57,8 @@ typedef void (^CompletionType)(NSError *error, uint32_t createdUID); } else { _completionBlock([NSError mco_errorWithErrorCode:op->error()], 0); } + [_completionBlock release]; + _completionBlock = nil; } - (void) bodyProgress:(unsigned int)current maximum:(unsigned int)maximum |