mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
x11_create_input_context - prevent memleak
This commit is contained in:
parent
4981cc65c9
commit
7d12408f24
@ -327,6 +327,8 @@ unsigned x11_get_xinerama_monitor(Display *dpy, int x, int y,
|
|||||||
|
|
||||||
bool x11_create_input_context(Display *dpy, Window win, XIM *xim, XIC *xic)
|
bool x11_create_input_context(Display *dpy, Window win, XIM *xim, XIC *xic)
|
||||||
{
|
{
|
||||||
|
x11_destroy_input_context(xim, xic);
|
||||||
|
|
||||||
g_x11_has_focus = true;
|
g_x11_has_focus = true;
|
||||||
|
|
||||||
*xim = XOpenIM(dpy, NULL, NULL, NULL);
|
*xim = XOpenIM(dpy, NULL, NULL, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user