From 28ddf2c34108dd99b59ef1467c04aecef197a351 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 16 Apr 2009 22:23:36 +0000 Subject: [PATCH] STR 2185: Uncommented "// XCloseIM(xim_im); FIXME", as discussed in STR 2185 and in fltk.development to prevent memory leak. The removed comment about a crash in XFree86: _XlcCreateDefaultCharSet() appears to be outdated (probably from 2005/2006). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 46ef72aa4..ab3dce8a9 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -813,11 +813,7 @@ int fl_handle(const XEvent& thisevent) fl_xim_im = NULL; fl_init_xim(); } else { - // XCloseIM(xim_im); FIXME - /* XFree86 has a bug when closing IM it crashes in - * _XlcCreateDefaultCharSet() ! So don't close it. - * This will cause a memory leak :-( - */ + XCloseIM(xim_im); // see STR 2185 for comment } return 0; }