[Libva] [libva-intel-driver PATCH] Use the right function to release allocated resources

Xiang, Haihao haihao.xiang at intel.com
Fri Sep 25 00:49:54 PDT 2015


Otherwise it might result in memory leak

Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
Tested-by: Liu, YangbinX <yangbinx.liu at intel.com>
---
 src/i965_post_processing.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 82162cb..04813e9 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);
 }
-- 
1.9.1



More information about the Libva mailing list