harvester/monitorplugins/messageplugin/src/messagemonitorplugin.cpp
changeset 40 910a23996aa0
parent 20 6dfc5f825351
child 51 87e65c44ff3a
--- a/harvester/monitorplugins/messageplugin/src/messagemonitorplugin.cpp	Wed Jul 14 07:57:22 2010 +0300
+++ b/harvester/monitorplugins/messageplugin/src/messagemonitorplugin.cpp	Fri Jul 23 10:03:59 2010 +0300
@@ -64,7 +64,9 @@
 	{
 	WRITELOG("ENTER ~CMessageMonitorPlugin");
     delete iMsvSession;
+    iMsvSession = NULL;
     delete iMessageScannerAO;
+    iMessageScannerAO = NULL;
 	WRITELOG("END ~CMessageMonitorPlugin");	
 	}
 
@@ -465,6 +467,7 @@
 		
 		iMdeSession->AddEventL( *event );
 		delete event;
+		event = NULL;
     	}
     
     WRITELOG( "CMessageMonitorPlugin::RemoveObjectL return" );