From b706ffe07fc61281d2dea406f828418f42e3da85 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Thu, 12 Jul 2007 00:03:13 -0400 Subject: Unmap mem before freeing driverPrivate --- src/savage_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3