From c1c94c202bb2e6a39f32056e7bd3fe7477406d9a Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Sat, 18 Sep 2004 20:23:32 +0000 Subject: vbeFree after SavageWriteMode in SavageCloseScreen. --- src/savage_driver.c | 8 ++++---- 1 file 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; -- cgit v1.2.3