summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2009-04-16 22:23:36 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2009-04-16 22:23:36 +0000
commit28ddf2c34108dd99b59ef1467c04aecef197a351 (patch)
treeb2e5b1ff136f1f0efbe3b0c2e3fdec2325494926
parent9029199cd83d9bcd6e645bc50d682d7e9f43e8a5 (diff)
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
-rw-r--r--src/Fl_x.cxx6
1 files changed, 1 insertions, 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;
}