summaryrefslogtreecommitdiffstats
path: root/src/libXvMC/context.c
diff options
context:
space:
mode:
authorYounes Manton <[email protected]>2008-07-19 16:22:56 -0400
committerYounes Manton <[email protected]>2008-07-20 19:16:41 -0400
commitc243573fafe8e83d4964535b201c499164d7c172 (patch)
tree41781847321e2a775b7d21f52a6587b37ee4f4ea /src/libXvMC/context.c
parent8878d8d4b35c9550632f5684bdc97f3958bf43c5 (diff)
g3dvl: Fix some memory leaks in the winsys.
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;
}