resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp
branchRCL_3
changeset 60 ccb4f6b3db21
parent 56 1ddbe54d0645
child 61 8cb079868133
--- a/resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp	Thu Aug 19 11:09:10 2010 +0300
+++ b/resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp	Tue Aug 31 16:29:05 2010 +0300
@@ -166,10 +166,13 @@
     delete iPowerService;
     iPowerService = NULL;
     
-    iMaxReportingPeriodNotifyHandler->StopListening();
-    delete iMaxReportingPeriodNotifyHandler;
-    iMaxReportingPeriodNotifyHandler =  NULL;
-
+    if (iMaxReportingPeriodNotifyHandler)
+    	{
+	    iMaxReportingPeriodNotifyHandler->StopListening();
+	    delete iMaxReportingPeriodNotifyHandler;
+	    iMaxReportingPeriodNotifyHandler =  NULL;
+    	}
+    	
     delete iRepository;  
     iRepository = NULL;