OMX_ERRORTYPE V4lRender::DeInitRenderComponent() { if(lock) fsl_osal_mutex_destroy(lock); return OMX_ErrorNone; }
OMX_ERRORTYPE IpulibRender::DeInitRenderComponent() { CloseDevice(); if(lock) fsl_osal_mutex_destroy(lock); return OMX_ErrorNone; }
OMX_ERRORTYPE PlatformResourceMgr::DeInit() { if(PlatformDataList != NULL) FSL_DELETE(PlatformDataList); if(lock != NULL) fsl_osal_mutex_destroy(lock); return OMX_ErrorNone; }
OMX_ERRORTYPE Clock::DeInitComponent() { if(lock != NULL) { fsl_osal_mutex_destroy(lock); lock = NULL; } if(Cond != NULL) { fsl_osal_cond_destroy(Cond); Cond = NULL; } return OMX_ErrorNone; }
QUEUE_ERRORTYPE Queue::Free() { if(pQNodeMem != NULL) FSL_FREE(pQNodeMem); if(pQMsgMem != NULL) FSL_FREE(pQMsgMem); if(lock != NULL) fsl_osal_mutex_destroy(lock); if(usedNodesSem != NULL) fsl_osal_sem_destroy(usedNodesSem); if(freeNodesSem != NULL) fsl_osal_sem_destroy(freeNodesSem); return QUEUE_SUCCESS; }