xorg-libx11/modules
Thomas E. Dickey 1d11822601
fix a memory leak in XRegisterIMInstantiateCallback
Analysis:

    _XimRegisterIMInstantiateCallback() opens an XIM and closes it using
    the internal function pointers, but the internal close function does
    not free the pointer to the XIM (this would be done in XCloseIM()).

Report/patch:

    Date: Mon, 03 Oct 2022 18:47:32 +0800
    From: Po Lu <luangruo@yahoo.com>
    To: xorg-devel@lists.x.org
    Subject: Re: Yet another leak in Xlib

    For reference, here's how I'm calling XRegisterIMInstantiateCallback:

    XSetLocaleModifiers ("");
    XRegisterIMInstantiateCallback (compositor.display,
                                    XrmGetDatabase (compositor.display),
                                    (char *) compositor.resource_name,
                                    (char *) compositor.app_name,
                                    IMInstantiateCallback, NULL);

    and XMODIFIERS is:

        @im=ibus

Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
2022-10-04 19:03:48 -04:00
..
im fix a memory leak in XRegisterIMInstantiateCallback 2022-10-04 19:03:48 -04:00
lc i18n: use memcpy instead of strncpy on unterminated char arrays 2020-08-28 20:29:27 +00:00
om Avoid NULL pointer deref. Fixes issue #47. 2021-12-03 02:56:43 +00:00
Makefile.am Add missing Makefile.am to lib/X11/modules 2005-07-15 04:27:32 +00:00