diff options
author | Dan Williams <dcbw@redhat.com> | 2009-12-11 14:39:11 -0800 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-12-11 14:39:11 -0800 |
commit | 56d87fcb86acb5359558e0a2ee702cfc0c3391f2 (patch) | |
tree | ee249dcb7256426fbd7633deec630a0eb0a36c7b | |
parent | 8627880e07c8345f69ed639325280c7f62a8f894 (diff) | |
download | network-manager-applet-56d87fcb86acb5359558e0a2ee702cfc0c3391f2.tar.gz |
applet: fix dbus connection refcounting after 8627880e07c8345f69ed639325280c7f62a8f894
-rw-r--r-- | 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 75bd36d9..344b92bc 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) { |