diff options
author | Christopher Hockley <christopher@putcocoa.in> | 2015-02-20 09:23:33 +0100 |
---|---|---|
committer | Christopher Hockley <christopher@putcocoa.in> | 2015-02-20 09:23:33 +0100 |
commit | ed817c0b2f0648d2f32887de1e4e6deb7513a953 (patch) | |
tree | 982b7c4550f9e6c6e3c9e7325564b0d98585f11a | |
parent | 9793fa6791cea4763f19af18d3291bb72f133500 (diff) |
AccountValidator Fixes
-rw-r--r-- | src/core/provider/MCAccountValidator.cpp | 5 |
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 ++; } |