[Libva] [libva-intel-driver PATCH] Use intel_batchbuffer_free() to free a batch buffer
Xiang, Haihao
haihao.xiang at intel.com
Sun Dec 14 20:30:53 PST 2014
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);
}
--
1.9.1
More information about the Libva
mailing list