]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_destroy_window) [HAVE_X_I18N]: Free xic and xim of frame.
authorRichard M. Stallman <rms@gnu.org>
Mon, 18 Mar 1996 03:20:06 +0000 (03:20 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 18 Mar 1996 03:20:06 +0000 (03:20 +0000)
src/xterm.c

index 28931a370fa32665a270da3576ab8a26b41e1818..352fa426eadfd4362f15fb820e62f559631e47a7 100644 (file)
@@ -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);