Commit 0f52ab9f authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Xiang, Haihao

Fix vaTerminate() with non DRI-based drivers.

parent 5fb326b4
......@@ -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);
......
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