summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2009-10-05 21:02:28 +0200
committerMatthieu Herrb <matthieu.herrb@laas.fr>2009-10-05 22:30:27 +0200
commit13c8350893eb32c34603cbcf8a829db3f22fd1ce (patch)
tree5f696f5d475cd5e6afbeea09b976efa7f97e57cd
parentb2c938bf08daec061341deec768135846f702f7a (diff)
downloadxorg-driver-xf86-video-vesa-13c8350893eb32c34603cbcf8a829db3f22fd1ce.tar.gz
Add missing shadowRemove() in VESACloseScreen().
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Acked-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--src/vesa.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vesa.c b/src/vesa.c
index 8165472..f786766 100644
--- a/src/vesa.c
+++ b/src/vesa.c
@@ -1097,8 +1097,10 @@ VESACloseScreen(int scrnIndex, ScreenPtr pScreen)
pVesa->savedPal, FALSE, TRUE);
VESAUnmapVidMem(pScrn);
}
- if (pVesa->shadowFB && pVesa->shadow)
+ if (pVesa->shadowFB && pVesa->shadow) {
+ shadowRemove(pScreen, pScreen->GetScreenPixmap(pScreen));
xfree(pVesa->shadow);
+ }
if (pVesa->pDGAMode) {
xfree(pVesa->pDGAMode);
pVesa->pDGAMode = NULL;