fix mem leaks
authorBrian <brian.paul@tungstengraphics.com>
Wed, 26 Dec 2007 13:56:58 +0000 (06:56 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 1 Jan 2008 17:21:21 +0000 (10:21 -0700)
src/mesa/pipe/xlib/xm_api.c

index ebf4c21eaf604ae45a9a77314e70abb9c580c8c1..168eba078434215606adf4ce216228a87d5f213e 100644 (file)
@@ -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 */