mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 01:30:29 +01: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.
(cherry picked from commit aec485f2dc)
This commit is contained in:
parent
5cb38a3fca
commit
476de585be
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue