From 70d27c8783595707cc54a43d914b08aca4113c24 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 25 Jul 2019 14:33:09 +0200 Subject: X11: Close input context on destruction --- pugl/pugl_x11.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index e5b8098..692ec04 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -205,6 +205,12 @@ void puglDestroy(PuglView* view) { if (view) { + if (view->impl->xic) { + XDestroyIC(view->impl->xic); + } + if (view->impl->xim) { + XCloseIM(view->impl->xim); + } view->impl->ctx.destroy(view); XDestroyWindow(view->impl->display, view->impl->win); XCloseDisplay(view->impl->display); -- cgit v1.2.1