From de51dd02d4c16d5c6bc89a2fe0e49ffda79f2a33 Mon Sep 17 00:00:00 2001 From: "Hoa V. Dinh" Date: Fri, 28 Jun 2013 09:58:19 -0700 Subject: Fixed memory leak: operations were retained by the block they owned, which created a cycle reference. --- src/objc/imap/MCOIMAPFetchContentOperation.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/objc/imap/MCOIMAPFetchContentOperation.mm') 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 -- cgit v1.2.3