--- a/resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp Wed Jun 23 19:38:32 2010 +0300
+++ b/resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp Tue Jul 06 15:43:30 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;