From 425749eba37937756275fea3354f6d340ceea933 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 4 Jun 2008 11:10:11 +0930 Subject: [PATCH] xkb: reset xkb_cached_map on CloseDownDevices. Could lead to some invalid pointers in the second server generation. --- xkb/xkbInit.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/xkb/xkbInit.c b/xkb/xkbInit.c index 47ad553..0aaa037 100644 --- a/xkb/xkbInit.c +++ b/xkb/xkbInit.c @@ -292,6 +292,9 @@ XkbDeleteRulesDflts() XkbVariantDflt = NULL; _XkbFree(XkbOptionsDflt); XkbOptionsDflt = NULL; + + XkbFreeKeyboard(xkb_cached_map, XkbAllComponentsMask, True); + xkb_cached_map = NULL; } /***====================================================================***/ -- 1.5.3