CoreKeyboardProc: don't leak keymap and modmap
SetKeySymsMap does a copy here, so try not to leak them.
This commit is contained in:
parent
a5be654017
commit
f9a1e456f8
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user