Commit 3630d4df authored by Xiang, Haihao's avatar Xiang, Haihao

i965_drv_video: release mfd context

Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent 9d9cd9ad
......@@ -1425,6 +1425,7 @@ gen6_mfd_terminate(VADriverContextP ctx)
struct i965_media_state *media_state = &i965->media_state;
struct gen6_mfd_context *gen6_mfd_context = media_state->private_context;
if (gen6_mfd_context) {
dri_bo_unreference(gen6_mfd_context->post_deblocking_output.bo);
gen6_mfd_context->post_deblocking_output.bo = NULL;
......@@ -1446,6 +1447,10 @@ gen6_mfd_terminate(VADriverContextP ctx)
dri_bo_unreference(gen6_mfd_context->bitplane_read_buffer.bo);
gen6_mfd_context->bitplane_read_buffer.bo = NULL;
free(gen6_mfd_context);
}
media_state->private_context = NULL;
return True;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment