aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Paul Young <paulyoungonline@gmail.com>2013-07-11 22:44:22 -0400
committerGravatar Paul Young <paulyoungonline@gmail.com>2013-07-11 22:44:22 -0400
commit90f9e57030c2c67949430b0f76d8d5396c31905a (patch)
treee7df0ddbf5a2d5cc62970d26ef89ee5c8b9dd0ab /src
parent80aa8935ed277d79cb1a2d911dea03d7ac790252 (diff)
Cnsolidated calls to release message ivar.
Diffstat (limited to 'src')
-rw-r--r--src/async/imap/MCIMAPMessageRenderingOperation.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/async/imap/MCIMAPMessageRenderingOperation.cc b/src/async/imap/MCIMAPMessageRenderingOperation.cc
index 6cc5090c..8240b4bb 100644
--- a/src/async/imap/MCIMAPMessageRenderingOperation.cc
+++ b/src/async/imap/MCIMAPMessageRenderingOperation.cc
@@ -57,20 +57,17 @@ void IMAPMessageRenderingOperation::main()
if (mRenderingType == IMAPMessageRenderingTypeHTML) {
mResult = session()->session()->htmlRendering(mMessage, folder(), &error);
- MC_SAFE_RETAIN(mResult);
}
else if (mRenderingType == IMAPMessageRenderingTypeHTMLBody) {
mResult = session()->session()->htmlBodyRendering(mMessage, folder(), &error);
- MC_SAFE_RETAIN(mResult);
}
else if (mRenderingType == IMAPMessageRenderingTypePlainText) {
mResult = session()->session()->plainTextRendering(mMessage, folder(), &error);
- MC_SAFE_RETAIN(mResult);
}
else if (mRenderingType == IMAPMessageRenderingTypePlainTextBody) {
mResult = session()->session()->plainTextBodyRendering(mMessage, folder(), &error);
- MC_SAFE_RETAIN(mResult);
}
+ MC_SAFE_RETAIN(mResult);
setError(error);
}