summaryrefslogtreecommitdiff
path: root/gnome-settings-daemon
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-11-17 02:15:25 +0000
committerBastien Nocera <hadess@hadess.net>2010-11-17 02:15:25 +0000
commit9501c9f7669a0be5d6ebad7476b9f6822e3a5b7b (patch)
treeedf08af50fbb3a5c1b30bd9fb14f00970b3649b1 /gnome-settings-daemon
parent0d6b1638a73498480bee72e44841e3d9e87a8091 (diff)
downloadgnome-settings-daemon-9501c9f7669a0be5d6ebad7476b9f6822e3a5b7b.tar.gz
daemon: Don't forget to unown the D-Bus name
Cleaner.
Diffstat (limited to 'gnome-settings-daemon')
-rw-r--r--gnome-settings-daemon/gnome-settings-manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnome-settings-daemon/gnome-settings-manager.c b/gnome-settings-daemon/gnome-settings-manager.c
index 1e3ce319..13b69a82 100644
--- a/gnome-settings-daemon/gnome-settings-manager.c
+++ b/gnome-settings-daemon/gnome-settings-manager.c
@@ -446,6 +446,11 @@ gnome_settings_manager_stop (GnomeSettingsManager *manager)
_unload_all (manager);
+ if (manager->priv->owner_id > 0) {
+ g_bus_unown_name (manager->priv->owner_id);
+ manager->priv->owner_id = 0;
+ }
+
g_object_unref (manager->priv->settings);
manager->priv->settings = NULL;
}