aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/service.c b/src/service.c
index 14d41cd..9a4e561 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1102,6 +1102,12 @@ my_dispose (GObject * o)
IndicatorSessionService * self = INDICATOR_SESSION_SERVICE(o);
priv_t * p = self->priv;
+ if (p->own_id)
+ {
+ g_bus_unown_name (p->own_id);
+ p->own_id = 0;
+ }
+
unexport (self);
if (p->cancellable != NULL)
@@ -1116,12 +1122,6 @@ my_dispose (GObject * o)
p->rebuild_id = 0;
}
- if (p->own_id)
- {
- g_bus_unown_name (p->own_id);
- p->own_id = 0;
- }
-
g_clear_pointer (&p->users, g_hash_table_destroy);
g_clear_object (&p->backend_users);
g_clear_object (&p->backend_guest);