diff options
author | Ted Gould <ted@gould.cx> | 2010-12-08 10:05:54 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-12-08 10:05:54 -0600 |
commit | 52375e6f27d268b13227b1f51b6a126e4df3a435 (patch) | |
tree | be97938ee417f277c4e2b5d6a8888cccca06d62e | |
parent | b9d669083f761e75c4c62b23055ca5e103cd8a2c (diff) | |
download | libayatana-appindicator-52375e6f27d268b13227b1f51b6a126e4df3a435.tar.gz libayatana-appindicator-52375e6f27d268b13227b1f51b6a126e4df3a435.tar.bz2 libayatana-appindicator-52375e6f27d268b13227b1f51b6a126e4df3a435.zip |
Adding a ref for creating the bus proxy.
-rw-r--r-- | src/app-indicator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index 99c7fed..744590b 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -1052,6 +1052,7 @@ check_connect (AppIndicator *self) want to ensure all the filters are setup before talking to the watcher and that's where the order is important. */ + g_object_ref(G_OBJECT(self)); /* Unref in watcher_ready() */ if (priv->watcher_proxy == NULL) { /* Build Watcher Proxy */ g_dbus_proxy_new(priv->connection, @@ -1120,6 +1121,8 @@ bus_watcher_ready (GObject * obj, GAsyncResult * res, gpointer user_data) register_service_cb, user_data); + g_object_unref(G_OBJECT(user_data)); + return; } |