aboutsummaryrefslogtreecommitdiff
path: root/src/app-indicator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app-indicator.c')
-rw-r--r--src/app-indicator.c3
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;
}