diff options
author | Gwenole Beauchesne <gb.devel@gmail.com> | 2011-06-16 21:03:46 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2011-06-17 08:33:51 +0800 |
commit | 0f52ab9f582526c2d462fed6f09d0a0a007327ad (patch) | |
tree | 11d6a44308aad8950fa338870144b97e5a117028 | |
parent | 5fb326b44e81fd919de2010dfe4b4b15dc3b2375 (diff) |
Fix vaTerminate() with non DRI-based drivers.
-rw-r--r-- | va/x11/va_x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/va/x11/va_x11.c b/va/x11/va_x11.c index 0d62534..947b5b1 100644 --- a/va/x11/va_x11.c +++ b/va/x11/va_x11.c @@ -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); |