diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/indicator-session.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index 8d3ce61..d2e679c 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -184,16 +184,17 @@ indicator_session_dispose (GObject *object) self->service = NULL; } - if (self->service_proxy_cancel != NULL) { - g_object_unref(self->service_proxy_cancel); - self->service_proxy_cancel = NULL; - } - if (self->service_proxy != NULL) { g_object_unref(self->service_proxy); self->service_proxy = NULL; } + if (self->service_proxy_cancel != NULL) { + g_cancellable_cancel(self->service_proxy_cancel); + g_object_unref(self->service_proxy_cancel); + self->service_proxy_cancel = NULL; + } + G_OBJECT_CLASS (indicator_session_parent_class)->dispose (object); return; } |