summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-26 06:56:58 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-01 10:21:21 -0700
commitf44e2f14d24b6d2730e7ff85e96695867ee96cbe (patch)
tree32b526fda2ef5d691eba07082926476f41f43211 /src
parent573b4414b926bb86e9a1e8f3ffad64426aa4bda4 (diff)
fix mem leaks
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/xlib/xm_api.c4
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 ebf4c21eaf..168eba0784 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 */