CoreKeyboardProc: don't leak keymap and modmap

SetKeySymsMap does a copy here, so try not to leak them.
This commit is contained in:
Daniel Stone 2006-10-27 01:25:39 +03:00 committed by Daniel Stone
parent a5be654017
commit f9a1e456f8

View File

@ -263,6 +263,10 @@ CoreKeyboardProc(DeviceIntPtr pDev, int what)
#endif
InitKeyboardDeviceStruct((DevicePtr)pDev, &keySyms, modMap,
CoreKeyboardBell, CoreKeyboardCtl);
xfree(keySyms.map);
xfree(modMap);
break;
case DEVICE_CLOSE: