mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
x11_create_input_context - prevent memleak
This commit is contained in:
parent
4981cc65c9
commit
7d12408f24
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
x11_destroy_input_context(xim, xic);
|
||||
|
||||
g_x11_has_focus = true;
|
||||
|
||||
*xim = XOpenIM(dpy, NULL, NULL, NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue