resourcemgmt/hwresourcesmgr/server/src/HWRMPowerCommonData.cpp
branchGCC_SURGE
changeset 49 00076e39386f
parent 45 c6215323ad55
child 52 d6b9e89d80a3
equal deleted inserted replaced
38:61516c5786af 49:00076e39386f
   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;