mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-16 14:11:10 +08:00
[vp8e]: fix double-free when deinit vp8e
The ctx should be freed in enc_impl_deinit(). Change-Id: I65bac3a0211f7e470f625fcf5d2b9c1efde1d1c6 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
@@ -129,11 +129,9 @@ MPP_RET vp8e_deinit(void *ctx)
|
|||||||
Vp8eCtx *p = (Vp8eCtx *)ctx;
|
Vp8eCtx *p = (Vp8eCtx *)ctx;
|
||||||
|
|
||||||
vp8e_rc_dbg_func("enter\n");
|
vp8e_rc_dbg_func("enter\n");
|
||||||
if (p) {
|
|
||||||
if (p->rc)
|
if (p->rc)
|
||||||
mpp_free(p->rc);
|
mpp_free(p->rc);
|
||||||
mpp_free(p);
|
|
||||||
}
|
|
||||||
|
|
||||||
vp8e_rc_dbg_func("leave\n");
|
vp8e_rc_dbg_func("leave\n");
|
||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
|
Reference in New Issue
Block a user