<AWT Dev> RFR: JDK-8165232 XKeycodeToKeysym is deprecated and should be replaced with XkbKeycodeToKeysym

Alan Burlison Alan.Burlison at oracle.com
Tue Oct 4 18:34:52 UTC 2016


On 04/10/16 17:34, Alexander Zvegintsev wrote:

> as I can see there is a memory leak in case when the index is greater
> than or equal to num_syms:
>
> 837 KeySym *key_syms = XGetKeyboardMapping(display, keycode, 1, &num_syms);
> 838 if (index >= num_syms) {
> 839 return NoSymbol;
> 840 }
>
> key_syms is not freed.

So there is, thanks for the catch.

-- 
Alan Burlison
--


More information about the awt-dev mailing list