clear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205

This commit is contained in:
Brian 2007-03-14 12:52:53 -06:00
parent 46fe008778
commit 3049946fa7

View file

@ -483,6 +483,12 @@ xmesa_free_buffer(XMesaBuffer buffer)
/* mark as delete pending */
fb->DeletePending = GL_TRUE;
/* Since the X window for the XMesaBuffer is going away, we don't
* want to dereference this pointer in the future.
*/
b->frontxrb->drawable = 0;
/* Unreference. If count = zero we'll really delete the buffer */
_mesa_unreference_framebuffer(&fb);