dri: don't set the dixPrivate key to NULL, as this is a staticly set variable.

- This breaks on the 2nd server generation.
- No other subsystem seems to NULL their key.
- This should fix bug 17982.
(cherry picked from commit 5b336585a4)
This commit is contained in:
Maarten Maathuis 2008-10-10 23:23:02 +02:00 committed by Adam Jackson
parent f75163e5f6
commit ec5046ca75

View File

@ -349,7 +349,6 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
pDRIPriv = (DRIScreenPrivPtr) xcalloc(1, sizeof(DRIScreenPrivRec));
if (!pDRIPriv) {
dixSetPrivate(&pScreen->devPrivates, DRIScreenPrivKey, NULL);
DRIScreenPrivKey = NULL;
return FALSE;
}
@ -742,7 +741,6 @@ DRICloseScreen(ScreenPtr pScreen)
xfree(pDRIPriv);
dixSetPrivate(&pScreen->devPrivates, DRIScreenPrivKey, NULL);
DRIScreenPrivKey = NULL;
}
}