--- a/email/pop3andsmtpmtm/smtpservermtm/src/IMSM.CPP Wed Jun 09 09:37:26 2010 +0300
+++ b/email/pop3andsmtpmtm/smtpservermtm/src/IMSM.CPP Mon Jun 21 15:36:19 2010 +0300
@@ -791,26 +791,13 @@
*/
void CMsgImOutboxSend::Complete(TInt status)
{
- if (iState != EStateMobilityError)
- {
- // Respond to any outstanding bearer mobility requests as we are about
- // to exit and we don't need to hold up the migration.
- if (PreparingForMigration())
- {
- SignalMigrate();
- }
- else if (iMobilityOperation == EMobilityOperationMigrating &&
- iState == EStateConnectingSession)
- {
- if (iMobilityManager)
- {
- iMobilityManager->NewCarrierAccepted();
- }
- }
- }
-
+ // sending of all the emails has completed, no need listen for Mobility Manager
+ delete iMobilityManager;
+ iMobilityManager=NULL;
+
delete iSession;
iSession = NULL;
+
delete iSessionManager;
iSessionManager = NULL;
@@ -1224,8 +1211,8 @@
delete iWaiter;
#endif
+ delete iMobilityManager;
delete iSessionManager;
- delete iMobilityManager;
}
CDesCArray& CMsgImOutboxSend::BccRcptArray()