mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 01:40:13 +01:00
xkb: reset xkb_cached_map on CloseDownDevices.
Could lead to some invalid pointers in the second server generation.
(cherry picked from commit ff3adf3e56)
This commit is contained in:
parent
7cdef0d6fc
commit
9b62355847
1 changed files with 3 additions and 0 deletions
|
|
@ -291,6 +291,9 @@ XkbDeleteRulesDflts()
|
|||
XkbVariantDflt = NULL;
|
||||
_XkbFree(XkbOptionsDflt);
|
||||
XkbOptionsDflt = NULL;
|
||||
|
||||
XkbFreeKeyboard(xkb_cached_map, XkbAllComponentsMask, True);
|
||||
xkb_cached_map = NULL;
|
||||
}
|
||||
|
||||
/***====================================================================***/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue