37 lines
884 B
Diff
37 lines
884 B
Diff
From d4988142a3f2256e38c5c5cdcdfc1b4f5f3c1ea9 Mon Sep 17 00:00:00 2001
|
|
From: Xiang, Haihao <haihao.xiang@intel.com>
|
|
Date: Thu, 18 Jul 2013 05:13:31 +0000
|
|
Subject: va: release VADisplayContext at the end of vaTerminate()
|
|
|
|
Otherwise it will result in invalid reading in va_TraceEnd()
|
|
|
|
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
|
|
---
|
|
(limited to 'va/va.c')
|
|
|
|
diff --git a/va/va.c b/va/va.c
|
|
index 6cb17ef..0ba595b 100644
|
|
--- a/va/va.c
|
|
+++ b/va/va.c
|
|
@@ -515,15 +515,15 @@ VAStatus vaTerminate (
|
|
free(old_ctx->vtable_vpp);
|
|
old_ctx->vtable_vpp = NULL;
|
|
|
|
- if (VA_STATUS_SUCCESS == vaStatus)
|
|
- pDisplayContext->vaDestroy(pDisplayContext);
|
|
-
|
|
VA_TRACE_LOG(va_TraceTerminate, dpy);
|
|
|
|
va_TraceEnd(dpy);
|
|
|
|
va_FoolEnd(dpy);
|
|
|
|
+ if (VA_STATUS_SUCCESS == vaStatus)
|
|
+ pDisplayContext->vaDestroy(pDisplayContext);
|
|
+
|
|
return vaStatus;
|
|
}
|
|
|
|
--
|
|
cgit v0.9.0.2-2-gbebe
|