From 9f76b56e41d2407c7eea2e01ad756b91d23af4a5 Mon Sep 17 00:00:00 2001 From: "Hoa V. Dinh" Date: Tue, 25 Feb 2014 09:24:05 -0800 Subject: Fixed crash when download of message failed (fixed #612) --- src/async/pop/MCPOPFetchMessageOperation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/async/pop/MCPOPFetchMessageOperation.cc b/src/async/pop/MCPOPFetchMessageOperation.cc index 4f909568..ca822a9e 100644 --- a/src/async/pop/MCPOPFetchMessageOperation.cc +++ b/src/async/pop/MCPOPFetchMessageOperation.cc @@ -43,7 +43,7 @@ void POPFetchMessageOperation::main() { ErrorCode error; mData = session()->session()->fetchMessage(mMessageIndex, this, &error); - mData->retain(); + MC_SAFE_RETAIN(mData); setError(error); } -- cgit v1.2.3