libX11: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Oct 8 19:59:41 UTC 2022


 modules/im/ximcp/imInsClbk.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1d11822601fd24a396b354fa616b04ed3df8b4ef
Author: Thomas E. Dickey <dickey at invisible-island.net>
Date:   Tue Oct 4 18:26:17 2022 -0400

    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 at yahoo.com>
        To: xorg-devel at 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 at invisible-island.net>



More information about the xorg-commit mailing list