aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-12-03 15:15:34 -0600
committerTed Gould <ted@gould.cx>2009-12-03 15:15:34 -0600
commitea29a8effb3c9ebcb7d2f469add8eaff462d29c5 (patch)
treecd440b2fda5d3a33778d70f5c3f6fa2f6e58305c
parent8331ee5c19c33130e574a2c9785e6caad806dfe2 (diff)
downloadlibayatana-indicator-ea29a8effb3c9ebcb7d2f469add8eaff462d29c5.tar.gz
libayatana-indicator-ea29a8effb3c9ebcb7d2f469add8eaff462d29c5.tar.bz2
libayatana-indicator-ea29a8effb3c9ebcb7d2f469add8eaff462d29c5.zip
Adding a weak pointer to the service proxy.
-rw-r--r--libindicator/indicator-service-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libindicator/indicator-service-manager.c b/libindicator/indicator-service-manager.c
index db31aff..a3680c4 100644
--- a/libindicator/indicator-service-manager.c
+++ b/libindicator/indicator-service-manager.c
@@ -309,6 +309,7 @@ start_service_cb (DBusGProxy * proxy, guint status, GError * error, gpointer use
INDICATOR_SERVICE_OBJECT,
INDICATOR_SERVICE_INTERFACE,
&error);
+ g_object_add_weak_pointer(G_OBJECT(priv->service_proxy), (gpointer *)&(priv->service_proxy));
org_ayatana_indicator_service_watch_async(priv->service_proxy,
watch_cb,