summaryrefslogtreecommitdiffstats
path: root/src/libXvMC/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libXvMC/context.c')
-rw-r--r--src/libXvMC/context.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libXvMC/context.c b/src/libXvMC/context.c
index c835a6acf7a..e5590025777 100644
--- a/src/libXvMC/context.c
+++ b/src/libXvMC/context.c
@@ -136,7 +136,8 @@ Status XvMCCreateContext(Display *display, XvPortID port, int surface_type_id, i
Status XvMCDestroyContext(Display *display, XvMCContext *context)
{
- struct VL_CONTEXT *vl_ctx;
+ struct VL_CONTEXT *vl_ctx;
+ struct pipe_context *pipe;
assert(display);
@@ -147,7 +148,9 @@ Status XvMCDestroyContext(Display *display, XvMCContext *context)
assert(display == vl_ctx->display);
+ pipe = vl_ctx->pipe;
vlDestroyContext(vl_ctx);
+ destroy_pipe_context(pipe);
return Success;
}