x11_create_input_context - prevent memleak

This commit is contained in:
twinaphex 2016-05-26 07:34:25 +02:00
parent 4981cc65c9
commit 7d12408f24

View File

@ -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);