aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indicator-messages.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 14833fd..12109ca 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -149,11 +149,7 @@ indicator_messages_dispose (GObject *object)
IndicatorMessages * self = INDICATOR_MESSAGES(object);
g_return_if_fail(self != NULL);
- if (self->service != NULL) {
- g_object_unref(self->service);
- self->service = NULL;
- }
-
+ g_clear_object (&self->service);
g_clear_object (&self->menu_wrapper);
g_clear_object (&self->actions);
g_clear_object (&self->menu);