fix[kmpp_obj]: Fix grp_cfg and buf_cfg leak in kmpp_obj_test

1. Use mem pool to alloc KmppObjImpl
2. Add kmpp_obj_put_impl to release KmppObjImpl header only.
3. Add grp_cfg and buf_cfg release operation.
4. Use MPP_SINGLETON to init kmpp_venc_cfg.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I865d4d990d7e89598b2f17d85460b809f7f602df
This commit is contained in:
Herman Chen
2025-07-08 10:43:49 +08:00
parent e0e59e5ce2
commit 5497c458fe
7 changed files with 131 additions and 104 deletions

View File

@@ -236,9 +236,15 @@ done:
if (grp)
kmpp_obj_put_f(grp);
if (grp_cfg)
kmpp_obj_put_impl_f(grp_cfg);
if (buf)
kmpp_obj_put_f(buf);
if (buf_cfg)
kmpp_obj_put_impl_f(buf_cfg);
return ret;
}