From: Richard M. Stallman Date: Mon, 18 Mar 1996 03:20:06 +0000 (+0000) Subject: (x_destroy_window) [HAVE_X_I18N]: Free xic and xim of frame. X-Git-Tag: emacs-19.34~1030 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=31f41dafa6f61cf631158af13945f779d7e1aa65;p=emacs.git (x_destroy_window) [HAVE_X_I18N]: Free xic and xim of frame. --- 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);