diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2015-09-25 09:06:19 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-09-28 10:11:57 +0800 |
commit | 743cf0e75a201487e17c234f099b0fa7005010c0 (patch) | |
tree | 7fb6dd926bfe21c5839cc1e808a0f1c78bb3430e /src/i965_post_processing.c | |
parent | 7476a1cc136444df4c5716c9ce1a803ef5de692c (diff) | |
download | libva-intel-driver-743cf0e75a201487e17c234f099b0fa7005010c0.tar.gz |
Use the right function to release allocated resources
Otherwise it might result in memory leak
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Tested-by: Liu, YangbinX <yangbinx.liu@intel.com>
Diffstat (limited to 'src/i965_post_processing.c')
-rwxr-xr-x | src/i965_post_processing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c index 82162cbe..04813e9f 100755 --- a/src/i965_post_processing.c +++ b/src/i965_post_processing.c @@ -6061,7 +6061,7 @@ i965_proc_context_destroy(void *hw_context) struct i965_proc_context * const proc_context = hw_context; VADriverContextP const ctx = proc_context->driver_context; - i965_post_processing_context_finalize(ctx, &proc_context->pp_context); + proc_context->pp_context.finalize(ctx, &proc_context->pp_context); intel_batchbuffer_free(proc_context->base.batch); free(proc_context); } |