From 52375e6f27d268b13227b1f51b6a126e4df3a435 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 8 Dec 2010 10:05:54 -0600 Subject: Adding a ref for creating the bus proxy. --- src/app-indicator.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3