resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp
changeset 45 c6215323ad55
parent 0 4e1aa6a622a0
child 52 d6b9e89d80a3
equal deleted inserted replaced
44:2c28af138640 45:c6215323ad55
   164     COMPONENT_TRACE1(_L( "HWRM Server - CHWRMPowerCommonData::~CHWRMPowerCommonData()" ) );
   164     COMPONENT_TRACE1(_L( "HWRM Server - CHWRMPowerCommonData::~CHWRMPowerCommonData()" ) );
   165     
   165     
   166     delete iPowerService;
   166     delete iPowerService;
   167     iPowerService = NULL;
   167     iPowerService = NULL;
   168     
   168     
   169     iMaxReportingPeriodNotifyHandler->StopListening();
   169     if (iMaxReportingPeriodNotifyHandler)
   170     delete iMaxReportingPeriodNotifyHandler;
   170     	{
   171     iMaxReportingPeriodNotifyHandler =  NULL;
   171 	    iMaxReportingPeriodNotifyHandler->StopListening();
   172 
   172 	    delete iMaxReportingPeriodNotifyHandler;
       
   173 	    iMaxReportingPeriodNotifyHandler =  NULL;
       
   174     	}
       
   175     	
   173     delete iRepository;  
   176     delete iRepository;  
   174     iRepository = NULL;
   177     iRepository = NULL;
   175     
   178     
   176     delete iPowerReportClientsData;
   179     delete iPowerReportClientsData;
   177     iPowerReportClientsData = NULL;
   180     iPowerReportClientsData = NULL;