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:
Peter Hutterer 2008-06-04 11:10:11 +09:30
parent 7cdef0d6fc
commit 9b62355847

View file

@ -291,6 +291,9 @@ XkbDeleteRulesDflts()
XkbVariantDflt = NULL;
_XkbFree(XkbOptionsDflt);
XkbOptionsDflt = NULL;
XkbFreeKeyboard(xkb_cached_map, XkbAllComponentsMask, True);
xkb_cached_map = NULL;
}
/***====================================================================***/