mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 12:50:14 +01:00
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
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue