From f44e2f14d24b6d2730e7ff85e96695867ee96cbe Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 26 Dec 2007 06:56:58 -0700 Subject: [PATCH] fix mem leaks --- src/mesa/pipe/xlib/xm_api.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.30.2