# HG changeset patch # User Richard M. Stallman # Date 827119206 0 # Node ID 34db919835d311a020883f8cd5bcdb84fe0597d3 # Parent 13f71787615d8aa212afe2883009489c08834000 (x_destroy_window) [HAVE_X_I18N]: Free xic and xim of frame. diff -r 13f71787615d -r 34db919835d3 src/xterm.c --- a/src/xterm.c Mon Mar 18 03:13:07 1996 +0000 +++ b/src/xterm.c Mon Mar 18 03:20:06 1996 +0000 @@ -5559,6 +5559,13 @@ { 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);