check for initialized XMesaBuffer in XMesaGarbageCollect()

This commit is contained in:
Brian Paul 2002-02-20 23:59:03 +00:00
parent ad7306b23c
commit d0271502f8

View File

@ -1,4 +1,4 @@
/* $Id: xm_api.c,v 1.31 2002/02/15 19:15:33 brianp Exp $ */
/* $Id: xm_api.c,v 1.32 2002/02/20 23:59:03 brianp Exp $ */
/*
* Mesa 3-D graphics library
@ -2605,7 +2605,7 @@ void XMesaGarbageCollect( void )
XMesaBuffer b, next;
for (b=XMesaBufferList; b; b=next) {
next = b->Next;
if (!b->pixmap_flag) {
if (b->display && b->frontbuffer && !b->pixmap_flag) {
#ifdef XFree86Server
/* NOT_NEEDED */
#else