[PATCH xf86-video-fbdev] fbdev: add missing shadowRemove in CloseScreen()

Julien Cristau jcristau at debian.org
Thu Feb 4 13:23:34 PST 2010


Fixes crash in CloseScreen().

Signed-off-by: Julien Cristau <jcristau at debian.org>
---
 src/fbdev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index dba3118..c97ce1c 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -917,6 +917,7 @@ FBDevCloseScreen(int scrnIndex, ScreenPtr pScreen)
 	fbdevHWRestore(pScrn);
 	fbdevHWUnmapVidmem(pScrn);
 	if (fPtr->shadow) {
+	    shadowRemove(pScreen, pScreen->GetScreenPixmap(pScreen));
 	    xfree(fPtr->shadow);
 	    fPtr->shadow = NULL;
 	}
-- 
1.6.6.1



More information about the xorg-devel mailing list