Index: src/main.c |
diff --git a/src/main.c b/src/main.c |
index 027d05fe2333279bc8f6022806a47cbd90e3e3e9..5e3349a872d3aebc332f0677b7903ab28261967d 100644 |
--- a/src/main.c |
+++ b/src/main.c |
@@ -35,6 +35,7 @@ static IBusFactory *factory = NULL; |
/* options */ |
static gboolean ibus = FALSE; |
int ibus_chewing_verbose= 0; |
+IBusConfig *iConfig = NULL; |
static const GOptionEntry entries[] = |
{ |
@@ -60,6 +61,9 @@ start_component (void) |
{ |
bus = ibus_bus_new (); |
g_signal_connect (bus, "disconnected", G_CALLBACK (ibus_disconnected_cb), NULL); |
+ iConfig = ibus_bus_get_config (bus); |
+ if (iConfig) |
+ g_object_ref_sink (iConfig); |
IBusConnection *iConnection=ibus_bus_get_connection (bus); |
factory = ibus_factory_new (iConnection); |