[gnome-settings-daemon] daemon: Don't forget to unown the D-Bus name
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] daemon: Don't forget to unown the D-Bus name
- Date: Wed, 17 Nov 2010 02:16:14 +0000 (UTC)
commit 9501c9f7669a0be5d6ebad7476b9f6822e3a5b7b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 17 02:15:25 2010 +0000
daemon: Don't forget to unown the D-Bus name
Cleaner.
gnome-settings-daemon/gnome-settings-manager.c | 5 +++++
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 1e3ce31..13b69a8 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]