From fb135922afab3b86365a251ea708cb4108f93835 Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Wed, 18 Feb 2009 16:37:19 +0800 Subject: [PATCH] Call ibus_object_destroy in bus_input_context_unset_engine. --- bus/inputcontext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bus/inputcontext.c b/bus/inputcontext.c index 7f4de65..866c837 100644 --- a/bus/inputcontext.c +++ b/bus/inputcontext.c @@ -1445,6 +1445,8 @@ bus_input_context_unset_engine (BusInputContext *context) for (i = 0; signals[i].name != NULL; i++) { g_signal_handlers_disconnect_by_func (priv->engine, signals[i].callback, context); } + /* we destroy the engine */ + ibus_object_destroy ((IBusObject *) priv->engine); g_object_unref (priv->engine); priv->engine = NULL; } -- 2.7.4