xkb: reset xkb_cached_map on CloseDownDevices.

Could lead to some invalid pointers in the second server generation.
This commit is contained in:
Peter Hutterer 2008-06-04 11:10:11 +09:30
parent 40855d8000
commit ff3adf3e56

View File

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