[network-manager-applet/NETWORKMANAGER_APPLET_0_7] applet: fix dbus connection refcounting after 8627880e07c8345f69ed639325280c7f62a8f894



commit 56d87fcb86acb5359558e0a2ee702cfc0c3391f2
Author: Dan Williams <dcbw redhat com>
Date:   Fri Dec 11 14:39:11 2009 -0800

    applet: fix dbus connection refcounting after 8627880e07c8345f69ed639325280c7f62a8f894

 src/gconf-helpers/nma-gconf-settings.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gconf-helpers/nma-gconf-settings.c b/src/gconf-helpers/nma-gconf-settings.c
index 75bd36d..344b92b 100644
--- a/src/gconf-helpers/nma-gconf-settings.c
+++ b/src/gconf-helpers/nma-gconf-settings.c
@@ -121,7 +121,6 @@ add_connection_real (NMAGConfSettings *self, NMAGConfConnection *connection)
 		nm_exported_connection_register_object (NM_EXPORTED_CONNECTION (connection),
 		                                        NM_CONNECTION_SCOPE_USER,
 		                                        priv->bus);
-		dbus_g_connection_unref (priv->bus);
 	}
 
 	nm_settings_signal_new_connection (NM_SETTINGS (self), NM_EXPORTED_CONNECTION (connection));
@@ -433,6 +432,9 @@ dispose (GObject *object)
 
 	priv->disposed = TRUE;
 
+	if (priv->bus)
+		dbus_g_connection_unref (priv->bus);
+
 	g_hash_table_destroy (priv->pending_changes);
 
 	if (priv->read_connections_id) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]