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.
This commit is contained in:
Maarten Maathuis 2008-10-10 23:23:02 +02:00
parent b736f477f5
commit 5b336585a4
1 changed files with 0 additions and 2 deletions

View File

@ -351,7 +351,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;
}
@ -744,7 +743,6 @@ DRICloseScreen(ScreenPtr pScreen)
xfree(pDRIPriv);
dixSetPrivate(&pScreen->devPrivates, DRIScreenPrivKey, NULL);
DRIScreenPrivKey = NULL;
}
}