ExaOffscreenMarkUsed: Don't crash when there's no offscreen memory.

This commit is contained in:
Dodji Seketeli 2007-07-03 11:00:29 +02:00 committed by Michel Dänzer
parent 0ede39a25c
commit 2a75c77497

View File

@ -429,7 +429,7 @@ ExaOffscreenMarkUsed (PixmapPtr pPixmap)
ExaScreenPriv (pPixmap->drawable.pScreen);
static int iter = 0;
if (!pExaPixmap->area)
if (!pExaPixmap || !pExaPixmap->area)
return;
/* The numbers here are arbitrary. We may want to tune these. */