messagingfw/msgtest/integration/sms/src/T_SmsEnum.cpp
changeset 58 6c34d0baa0b1
parent 0 8e480a14352b
--- a/messagingfw/msgtest/integration/sms/src/T_SmsEnum.cpp	Tue Oct 05 13:50:47 2010 +0530
+++ b/messagingfw/msgtest/integration/sms/src/T_SmsEnum.cpp	Tue Oct 19 11:59:06 2010 +0530
@@ -29,12 +29,14 @@
 	MsvEntry().SetEntryL(iSmsTest.iProgress.iEnumerateFolder);
 
 	delete iSelection;
+	iSelection = NULL;
 	iSelection = MsvEntry().ChildrenL();
 	iSelection->InsertL(0,iSmsTest.iSmsServiceId);
 
 	TPckgBuf<TMsvId> pkg(KMsvGlobalInBoxIndexEntryId);
 
 	delete iOperation;
+	iOperation = NULL;
 	iOperation = Session().TransferCommandL(*iSelection, ESmsMtmCommandCopyFromPhoneStore, pkg, iStatus);
 	SetActive();
 	CActiveScheduler::Start();
@@ -48,12 +50,14 @@
 	MsvEntry().SetEntryL(iSmsTest.iProgress.iEnumerateFolder);
 
 	delete iSelection;
+	iSelection = NULL;
 	iSelection = MsvEntry().ChildrenL();
 	iSelection->InsertL(0,iSmsTest.iSmsServiceId);
 
 	TPckgBuf<TMsvId> pkg(KMsvGlobalInBoxIndexEntryId);
 
 	delete iOperation;
+	iOperation = NULL;
 	iOperation = Session().TransferCommandL(*iSelection, ESmsMtmCommandMoveFromPhoneStore, pkg, iStatus);
 	SetActive();
 	CActiveScheduler::Start();
@@ -67,10 +71,12 @@
 	MsvEntry().SetEntryL(iSmsTest.iProgress.iEnumerateFolder);
 
 	delete iSelection;
+	iSelection = NULL;
 	iSelection = MsvEntry().ChildrenL();
 	iSelection->InsertL(0,iSmsTest.iSmsServiceId);
 
 	delete iOperation;
+	iOperation = NULL;
 	iOperation = Session().TransferCommandL(*iSelection, ESmsMtmCommandDeleteFromPhoneStore, TPtrC8(), iStatus);
 	SetActive();
 	CActiveScheduler::Start();
@@ -92,6 +98,7 @@
 	iSmsTest(iSelection->Count());
 
 	delete iOperation;
+	iOperation = NULL;
 	iOperation = Session().TransferCommandL(*iSelection, ESmsMtmCommandCopyToPhoneStore, TPtrC8(), iStatus);
 	SetActive();
 	CActiveScheduler::Start();
@@ -106,6 +113,7 @@
 	iSelection->AppendL(iSmsTest.iSmsServiceId);
 
 	delete iOperation;
+	iOperation = NULL;
 	iOperation = Session().TransferCommandL(*iSelection, ESmsMtmCommandEnumeratePhoneStores, TPtrC8(), iStatus);
 	SetActive();
 	CActiveScheduler::Start();
@@ -325,6 +333,7 @@
 			{
 			MsvEntry().SetEntryL(iSmsTest.iProgress.iEnumerateFolder);
 			delete iSelection;
+			iSelection = NULL;
 			iSelection = MsvEntry().ChildrenL();
 
 			iSmsTest.Printf(_L("%d message(s) on SIM. %d message(s) now contained in folder %d.\n"), iSmsTest.iProgress.iMsgCount, iSelection->Count(), iSmsTest.iProgress.iEnumerateFolder);