summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2004-09-18 20:23:32 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2004-09-18 20:23:32 +0000
commitc1c94c202bb2e6a39f32056e7bd3fe7477406d9a (patch)
tree4336b72161de788ac3b484f5e92bc8b278fdab94
parentfc8bd5bde48424e47020eae179c8b331ff69595a (diff)
vbeFree after SavageWriteMode in SavageCloseScreen.
-rw-r--r--src/savage_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index afc890e..dff332e 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -3341,10 +3341,6 @@ static Bool SavageCloseScreen(int scrnIndex, ScreenPtr pScreen)
}
#endif
- if (psav->pVbe)
- vbeFree(psav->pVbe);
- psav->pVbe = NULL;
-
if( psav->AccelInfoRec ) {
XAADestroyInfoRec( psav->AccelInfoRec );
psav->AccelInfoRec = NULL;
@@ -3364,6 +3360,10 @@ static Bool SavageCloseScreen(int scrnIndex, ScreenPtr pScreen)
SavageUnmapMem(pScrn, 0);
}
+ if (psav->pVbe)
+ vbeFree(psav->pVbe);
+ psav->pVbe = NULL;
+
pScrn->vtSema = FALSE;
pScreen->CloseScreen = psav->CloseScreen;