GNOME Bugzilla – Bug 95150
Serious bug in xim-immodule
Last modified: 2011-02-04 16:10:07 UTC
Gtk+-2.0 has serious bug in modules/input/gtkimcontextxim.c. Here is the patch for this bug: diff -Nur gtk+-2.0.6-bak/modules/input/gtkimcontextxim.c gtk+-2.0.6/modules/inpu t/gtkimcontextxim.c --- gtk+-2.0.6-bak/modules/input/gtkimcontextxim.c Thu Jul 11 03:26:33 2002 +++ gtk+-2.0.6/modules/input/gtkimcontextxim.c Tue Oct 8 00:07:10 2002 @@ -216,7 +216,7 @@ if (im) { info = g_new (GtkXIMInfo, 1); - open_ims = g_slist_prepend (open_ims, im); + open_ims = g_slist_prepend (open_ims, info); info->locale = g_strdup (locale); info->im = im; This bug causes memory leak and XOpenIM will be called every time because locale string is never matched with existing xim instances. So application works with Gtk+-2.0 seems unstable on Japanese environment.
Created attachment 11444 [details] [review] patch for xim-immodule
Fix applied, thanks. Tue Oct 8 09:41:43 2002 Owen Taylor <otaylor@redhat.com> * Patch from Takuro Ashie to fix updating of open_ims list. (#95150)