actually free the renderbuffer in xmesa_delete_renderbuffer(), fixes a memory leak
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 9 Aug 2005 15:17:19 +0000 (15:17 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 9 Aug 2005 15:17:19 +0000 (15:17 +0000)
src/mesa/drivers/x11/xm_buffer.c

index 9f481aaba12f5539f9aab8f07413b5270c5995a1..593ac2bb19c75e111538ad44d22583efb6f818f8 100644 (file)
 static void
 xmesa_delete_renderbuffer(struct gl_renderbuffer *rb)
 {
-   /* XXX this routine should really delete the attached ximage, etc. */
+   /* XXX Note: the ximage or Pixmap attached to this renderbuffer
+    * should probably get freed here, but that's currently done in
+    * XMesaDestroyBuffer().
+    */
+   _mesa_free(rb);
 }