/** * Releases the module's allocated objects according to the given init vector. * * @param pMeasurementMgr A handle to the Measurement Manager module. * @param initVec The init vector with a bit set for each allocated object. * * @date 01-Jan-2006 */ static void measurementMgr_releaseModule (measurementMgr_t * pMeasurementMgr) { #ifdef XCC_MODULE_INCLUDED TI_UINT32 currAC; #endif if (pMeasurementMgr->hActivationDelayTimer) { tmr_DestroyTimer (pMeasurementMgr->hActivationDelayTimer); } #ifdef XCC_MODULE_INCLUDED for (currAC = 0; currAC < MAX_NUM_OF_AC; currAC++) { if (pMeasurementMgr->hTsMetricsReportTimer[currAC]) { tmr_DestroyTimer (pMeasurementMgr->hTsMetricsReportTimer[currAC]); } } #endif if (pMeasurementMgr->pMeasurementMgrSm) { fsm_Unload(pMeasurementMgr->hOs, pMeasurementMgr->pMeasurementMgrSm); } if (pMeasurementMgr->hRequestH) { requestHandler_destroy(pMeasurementMgr->hRequestH); } os_memoryFree(pMeasurementMgr->hOs, pMeasurementMgr, sizeof(measurementMgr_t)); }
/** * Releases the module's allocated objects according to the given init vector. * * @param pMeasurementMgr A handle to the Measurement Manager module. * @param initVec The init vector with a bit set for each allocated object. * * @date 01-Jan-2006 */ static void measurementMgr_releaseModule (measurementMgr_t * pMeasurementMgr) { if (pMeasurementMgr->hActivationDelayTimer) { tmr_DestroyTimer (pMeasurementMgr->hActivationDelayTimer); } if (pMeasurementMgr->pMeasurementMgrSm) { fsm_Unload(pMeasurementMgr->hOs, pMeasurementMgr->pMeasurementMgrSm); } if (pMeasurementMgr->hRequestH) { requestHandler_destroy(pMeasurementMgr->hRequestH); } os_memoryFree(pMeasurementMgr->hOs, pMeasurementMgr, sizeof(measurementMgr_t)); }