summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/input/gtkimcontextxim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/input/gtkimcontextxim.c b/modules/input/gtkimcontextxim.c
index 68f6ec4f9d..f6f7bd947f 100644
--- a/modules/input/gtkimcontextxim.c
+++ b/modules/input/gtkimcontextxim.c
@@ -577,7 +577,7 @@ gtk_im_context_xim_finalize (GObject *obj)
xim_instantiate_callback,
(XPointer)context_xim->im_info);
}
- else
+ else if (context_xim->im_info->im)
{
XIMCallback im_destroy_callback;