omx_core: fix heap corruption when unregistering component

Change-Id: Ie5c20e48f376054b1fe468274128e4c19c2ef3d1
tirimbino
Dheeraj CVR 10 years ago committed by Abhisek Devkota
parent 7cc56139f1
commit 50bbcbe20b
  1. 2
      exynos/multimedia/openmax/core/SEC_OMX_Component_Register.c

@ -141,8 +141,10 @@ OMX_ERRORTYPE SEC_OMX_Component_Unregister(SEC_OMX_COMPONENT_REGLIST *componentL
{ {
OMX_ERRORTYPE ret = OMX_ErrorNone; OMX_ERRORTYPE ret = OMX_ErrorNone;
if (componentList != NULL) {
SEC_OSAL_Memset(componentList, 0, sizeof(SEC_OMX_COMPONENT_REGLIST) * MAX_OMX_COMPONENT_NUM); SEC_OSAL_Memset(componentList, 0, sizeof(SEC_OMX_COMPONENT_REGLIST) * MAX_OMX_COMPONENT_NUM);
SEC_OSAL_Free(componentList); SEC_OSAL_Free(componentList);
}
EXIT: EXIT:
return ret; return ret;

Loading…
Cancel
Save