dix: calloc root window's Generic Event mask, stops segfaults.

This commit is contained in:
Peter Hutterer 2007-11-09 11:29:18 +10:30
parent 59b304d8a2
commit cb75f09146

View File

@ -455,7 +455,12 @@ CreateRootWindow(ScreenPtr pScreen)
#ifdef XINPUT
pWin->optional->inputMasks = NULL;
pWin->optional->deviceCursors = NULL;
pWin->optional->geMasks = NULL;
pWin->optional->geMasks = (GenericClientMasksPtr)xcalloc(1, sizeof(GenericClientMasksRec));
if (!pWin->optional->geMasks)
{
xfree(pWin->optional);
return FALSE;
}
#endif
pWin->optional->access.perm = NULL;