OSDN Git Service

Fix vaTerminate() with non DRI-based drivers.
authorGwenole Beauchesne <gb.devel@gmail.com>
Thu, 16 Jun 2011 13:03:46 +0000 (21:03 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 17 Jun 2011 00:33:51 +0000 (08:33 +0800)
va/x11/va_x11.c

index 0d62534..947b5b1 100644 (file)
@@ -63,7 +63,7 @@ static void va_DisplayContextDestroy (
     ctx = pDisplayContext->pDriverContext;
     dri_state = ctx->dri_state;
 
-    if (dri_state)
+    if (dri_state && dri_state->close)
         dri_state->close(ctx);
 
     free(pDisplayContext->pDriverContext->dri_state);