hardware/intel/intel-driver
Revision | b5d6d9d425a6d539b27d22992bda05f79d1a0622 (tree) |
---|---|
Time | 2014-12-15 13:54:01 |
Author | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
Use intel_batchbuffer_free() to free a batch buffer
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao, Yakui <yakui.zhao@intel.com>
@@ -860,7 +860,8 @@ vpp_gpe_context_destroy(VADriverContextP ctx, | ||
860 | 860 | vpp_gpe_ctx->surface_tmp_object = NULL; |
861 | 861 | } |
862 | 862 | |
863 | - free(vpp_gpe_ctx->batch); | |
863 | + if (vpp_gpe_ctx->batch) | |
864 | + intel_batchbuffer_free(vpp_gpe_ctx->batch); | |
864 | 865 | |
865 | 866 | free(vpp_gpe_ctx); |
866 | 867 | } |