diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-16 10:35:37 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-16 10:35:37 +0800 |
commit | a8869d09f5764d1bf2d37ef6c4d90caa1dc35c11 (patch) | |
tree | 2f92c298b728b48245685362b791f639867608d9 /src/ibusbus.c | |
parent | f77a0cb12e8349e097d7869528f57c29d05d02d9 (diff) | |
download | ibus-a8869d09f5764d1bf2d37ef6c4d90caa1dc35c11.tar.gz ibus-a8869d09f5764d1bf2d37ef6c4d90caa1dc35c11.tar.xz ibus-a8869d09f5764d1bf2d37ef6c4d90caa1dc35c11.zip |
Do not call ibus_connection_flush in ibus_bus_exit to avoid crash.
Diffstat (limited to 'src/ibusbus.c')
-rw-r--r-- | src/ibusbus.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |