From 31f41dafa6f61cf631158af13945f779d7e1aa65 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 18 Mar 1996 03:20:06 +0000 Subject: [PATCH] (x_destroy_window) [HAVE_X_I18N]: Free xic and xim of frame. --- src/xterm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 28931a370fa..352fa426ead 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -5559,6 +5559,13 @@ x_destroy_window (f) { if (f->output_data.x->icon_desc != 0) XDestroyWindow (FRAME_X_DISPLAY (f), f->output_data.x->icon_desc); +#ifdef HAVE_X_I18N + if (FRAME_XIM (f)) + { + XDestroyIC (FRAME_XIC (f)); + XCloseIM (FRAME_XIM (f)); + } +#endif XDestroyWindow (FRAME_X_DISPLAY (f), f->output_data.x->window_desc); #ifdef USE_X_TOOLKIT XtDestroyWidget (f->output_data.x->widget); -- 2.39.2