dix: calloc root window's Generic Event mask, stops segfaults.
This commit is contained in:
parent
59b304d8a2
commit
cb75f09146
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user