mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-28 03:30:15 +00:00
dix: NULL out WindowTable after freeing all the windows.
CloseDownDevices() tries to send PresenceNotify events. If the windows are already freed, then we are accessing dangling pointers.
This commit is contained in:
@@ -458,7 +458,10 @@ main(int argc, char *argv[], char *envp[])
|
||||
#endif
|
||||
|
||||
config_fini();
|
||||
|
||||
memset(WindowTable, 0, MAXSCREENS * sizeof(WindowPtr));
|
||||
CloseDownDevices();
|
||||
|
||||
for (i = screenInfo.numScreens - 1; i >= 0; i--)
|
||||
{
|
||||
FreeScratchPixmapsForScreen(i);
|
||||
|
||||
Reference in New Issue
Block a user