Xi: modifierKeyMap needs to be set to NULL when copying classes.

Otherwise we have a double reference to the same memory area.
This commit is contained in:
Peter Hutterer 2008-04-13 09:31:16 +09:30
parent bf6679cba4
commit 961f666090

View File

@ -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)