mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: calloc root window's Generic Event mask, stops segfaults.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user