From a8869d09f5764d1bf2d37ef6c4d90caa1dc35c11 Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Mon, 16 Feb 2009 10:35:37 +0800 Subject: Do not call ibus_connection_flush in ibus_bus_exit to avoid crash. --- src/ibusbus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ibusbus.c') diff --git a/src/ibusbus.c b/src/ibusbus.c index 0ebdf66..52631e8 100644 --- a/src/ibusbus.c +++ b/src/ibusbus.c @@ -149,6 +149,9 @@ _connection_destroy_cb (IBusConnection *connection, priv = IBUS_BUS_GET_PRIVATE (bus); g_assert (priv->connection == connection); + g_signal_handlers_disconnect_by_func (priv->connection, + G_CALLBACK (_connection_destroy_cb), + bus); g_object_unref (priv->connection); priv->connection = NULL; @@ -651,8 +654,6 @@ ibus_bus_exit (IBusBus *bus, G_TYPE_BOOLEAN, &restart, G_TYPE_INVALID, G_TYPE_INVALID); - ibus_connection_flush (priv->connection); - return result; } -- cgit