harvesterplugins/tsrc/harvesterplugintester/src/cmessagesessionobserver.cpp
changeset 11 773be20e0a25
parent 7 51d10d255e92
--- a/harvesterplugins/tsrc/harvesterplugintester/src/cmessagesessionobserver.cpp	Fri Jun 11 13:39:26 2010 +0300
+++ b/harvesterplugins/tsrc/harvesterplugintester/src/cmessagesessionobserver.cpp	Wed Jun 23 18:13:49 2010 +0300
@@ -169,7 +169,7 @@
     TMsvAttachmentId attaId = KMsvNullIndexEntryId;    
     
     RFs iFSsession;
-    iFSsession.Connect();
+    User::LeaveIfError( iFSsession.Connect());
     RFile testfile;
     
     CMsvMimeHeaders* mimeHeaders = CMsvMimeHeaders::NewL();
@@ -216,8 +216,8 @@
     entry.SetUnread( EFalse );
     iMmsClient->Entry().ChangeL( entry );
     iMmsClient->SaveMessageL();
-    
     delete iMmsClient;
+    iMmsClient = NULL;
     delete mtmReg;
     return newMsgId;
     }
@@ -290,6 +290,7 @@
     
  
     delete iSmtpClient;
+    iSmtpClient = NULL;
     delete mtmReg;
     return newMsgId;
     }