diff options
author | Younes Manton <[email protected]> | 2008-07-19 16:22:56 -0400 |
---|---|---|
committer | Younes Manton <[email protected]> | 2008-07-20 19:16:41 -0400 |
commit | c243573fafe8e83d4964535b201c499164d7c172 (patch) | |
tree | 41781847321e2a775b7d21f52a6587b37ee4f4ea /src/libXvMC/context.c | |
parent | 8878d8d4b35c9550632f5684bdc97f3958bf43c5 (diff) |
g3dvl: Fix some memory leaks in the winsys.
Diffstat (limited to 'src/libXvMC/context.c')
-rw-r--r-- | src/libXvMC/context.c | 5 |
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; } |