[osal]: add clear operation to mpp_free

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@210 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2008-01-29 23:29:40 +00:00
parent b56729adb9
commit 70090757a3
9 changed files with 17 additions and 25 deletions

View File

@@ -224,14 +224,8 @@ RK_S32 vpu_close_context(VpuCodecContext **ctx)
delete api;
s->vpuApiObj = NULL;
}
if (s->extradata) {
mpp_free(s->extradata);
s->extradata = NULL;
}
if (s->private_data) {
mpp_free(s->private_data);
s->private_data = NULL;
}
mpp_free(s->extradata);
mpp_free(s->private_data);
mpp_free(s);
*ctx = s = NULL;