aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Christopher Hockley <christopher@putcocoa.in>2015-02-20 09:23:33 +0100
committerGravatar Christopher Hockley <christopher@putcocoa.in>2015-02-20 09:23:33 +0100
commited817c0b2f0648d2f32887de1e4e6deb7513a953 (patch)
tree982b7c4550f9e6c6e3c9e7325564b0d98585f11a /src
parent9793fa6791cea4763f19af18d3291bb72f133500 (diff)
AccountValidator Fixes
Diffstat (limited to 'src')
-rw-r--r--src/core/provider/MCAccountValidator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/provider/MCAccountValidator.cpp b/src/core/provider/MCAccountValidator.cpp
index 235c1704..8a290228 100644
--- a/src/core/provider/MCAccountValidator.cpp
+++ b/src/core/provider/MCAccountValidator.cpp
@@ -228,6 +228,7 @@ void AccountValidator::checkNextHost()
mImapSession->setConnectionType(mImapServer->connectionType());
mOperation = (IMAPOperation *)mImapSession->checkAccountOperation();
+ mOperation->retain();
mOperation->setCallback(this);
mOperation->start();
}
@@ -249,6 +250,7 @@ void AccountValidator::checkNextHost()
mPopSession->setConnectionType(mPopServer->connectionType());
mOperation = mPopSession->checkAccountOperation();
+ mOperation->retain();
mOperation->setCallback(this);
mOperation->start();
}
@@ -270,6 +272,7 @@ void AccountValidator::checkNextHost()
mSmtpSession->setConnectionType(mSmtpServer->connectionType());
mOperation = mSmtpSession->checkAccountOperation(Address::addressWithMailbox(mEmail));
+ mOperation->retain();
mOperation->setCallback(this);
mOperation->start();
}
@@ -304,6 +307,8 @@ void AccountValidator::checkNextHostDone()
MC_SAFE_RELEASE(mSmtpSession);
}
+ MC_SAFE_RELEASE(mOperation);
+
if (error == ErrorNone) {
mCurrentServiceTested ++;
}