mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
[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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user