From 2a75c774975b50dd4e71b7dbea7bd65ca2984a43 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Tue, 3 Jul 2007 11:00:29 +0200 Subject: [PATCH] ExaOffscreenMarkUsed: Don't crash when there's no offscreen memory. --- exa/exa_offscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exa/exa_offscreen.c b/exa/exa_offscreen.c index 6fe646a88..c666b001b 100644 --- a/exa/exa_offscreen.c +++ b/exa/exa_offscreen.c @@ -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. */