summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-04-13 09:31:16 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-13 09:31:16 +0930
commit961f6660902163e99727c2dcc1a039f32b083859 (patch)
tree9bb88585a6a93640d88d9cfde9342aebec88cba8
parentbf6679cba40a936d46008c886d204ed521a4971a (diff)
Xi: modifierKeyMap needs to be set to NULL when copying classes.
Otherwise we have a double reference to the same memory area.
-rw-r--r--Xi/exevents.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 815eb7c6c..1d4dc51bf 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -434,6 +434,7 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
#ifdef XKB
to->key->xkbInfo = NULL;
#endif
+ to->key->modifierKeyMap = NULL;
to->key->curKeySyms.map = NULL;
CopyKeyClass(from, to);
} else if (to->key && !from->key)