summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.com>2007-07-12 00:03:13 -0400
committerAlex Deucher <alex@botch2.com>2007-07-12 00:03:13 -0400
commitb706ffe07fc61281d2dea406f828418f42e3da85 (patch)
treee1e2a5b649224265a6f541b6918ac46ce1d01c41
parentfab88bce3b9f19918bbf1a2b0f57d34113c8381f (diff)
Unmap mem before freeing driverPrivate
-rw-r--r--src/savage_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 84b9fcd..c56edf1 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -766,9 +766,9 @@ static void SavageFreeRec(ScrnInfoPtr pScrn)
TRACE(( "SavageFreeRec(%x)\n", pScrn->driverPrivate ));
if (!pScrn->driverPrivate)
return;
+ SavageUnmapMem(pScrn, 1);
xfree(pScrn->driverPrivate);
pScrn->driverPrivate = NULL;
- SavageUnmapMem(pScrn, 1);
}