diff options
author | Brian <[email protected]> | 2007-12-26 06:56:58 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-01 10:21:21 -0700 |
commit | f44e2f14d24b6d2730e7ff85e96695867ee96cbe (patch) | |
tree | 32b526fda2ef5d691eba07082926476f41f43211 | |
parent | 573b4414b926bb86e9a1e8f3ffad64426aa4bda4 (diff) |
fix mem leaks
-rw-r--r-- | src/mesa/pipe/xlib/xm_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/xlib/xm_api.c b/src/mesa/pipe/xlib/xm_api.c index ebf4c21eaf6..168eba07843 100644 --- a/src/mesa/pipe/xlib/xm_api.c +++ b/src/mesa/pipe/xlib/xm_api.c @@ -447,6 +447,10 @@ xmesa_free_buffer(XMesaBuffer buffer) /* Unreference. If count = zero we'll really delete the buffer */ _mesa_unreference_framebuffer(&fb); + XFreeGC(b->xm_visual->display, b->gc); + + free(buffer); + return; } /* continue search */ |