[Libva] [libva-intel-driver PATCH] Use intel_batchbuffer_free() to free a batch buffer
Zhao, Yakui
yakui.zhao at intel.com
Sun Dec 14 20:37:19 PST 2014
On Sun, 2014-12-14 at 21:30 -0700, Xiang, Haihao wrote:
This looks good to me.
Add: Reviewed-by: Zhao, Yakui <yakui.zhao at intel.com>
> Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
> ---
> src/gen75_vpp_gpe.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gen75_vpp_gpe.c b/src/gen75_vpp_gpe.c
> index 0b7b3d1..52a0e2f 100644
> --- a/src/gen75_vpp_gpe.c
> +++ b/src/gen75_vpp_gpe.c
> @@ -860,7 +860,8 @@ vpp_gpe_context_destroy(VADriverContextP ctx,
> vpp_gpe_ctx->surface_tmp_object = NULL;
> }
>
> - free(vpp_gpe_ctx->batch);
> + if (vpp_gpe_ctx->batch)
> + intel_batchbuffer_free(vpp_gpe_ctx->batch);
>
> free(vpp_gpe_ctx);
> }
More information about the Libva
mailing list