summaryrefslogtreecommitdiff
path: root/saa/saa_pixmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'saa/saa_pixmap.c')
-rw-r--r--saa/saa_pixmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/saa/saa_pixmap.c b/saa/saa_pixmap.c
index 0d63091..240d609 100644
--- a/saa/saa_pixmap.c
+++ b/saa/saa_pixmap.c
@@ -134,7 +134,8 @@ saa_destroy_pixmap(PixmapPtr pPixmap)
REGION_UNINIT(pScreen, &spix->dirty_hw);
REGION_UNINIT(pScreen, &spix->dirty_shadow);
- spix->damage = NULL;
+ if (spix->damage)
+ DamageDestroy(spix->damage);
}
saa_swap(sscreen, pScreen, DestroyPixmap);