Disable inputcontext when the engine is destroyed.
authorHuang Peng <shawn.p.huang@gmail.com>
Mon, 16 Feb 2009 05:55:12 +0000 (13:55 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Mon, 16 Feb 2009 05:55:12 +0000 (13:55 +0800)
bus/inputcontext.c

index bdc7d75dc9dea6bcf6f0381863fbfae3812a9bd4..979c710d906167e1ad924af884d2bf35c4f4e5e3 100644 (file)
@@ -1121,6 +1121,7 @@ _engine_destroy_cb (BusEngineProxy  *engine,
     g_assert (priv->engine == engine);
 
     bus_input_context_unset_engine (context);
+    bus_input_context_disable (context);
 }
 
 static void