aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-08-19 16:24:42 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-08-19 16:24:42 -0500
commit5b852d2f1fd35640ce94982c8078ce1603ed12a2 (patch)
tree6cf94555641e2622598f5a2d8339de3bfe79eb83 /src
parentade3b76a6d41bf95b82e6c19b09c7142c79bf31e (diff)
downloadayatana-indicator-messages-5b852d2f1fd35640ce94982c8078ce1603ed12a2.tar.gz
ayatana-indicator-messages-5b852d2f1fd35640ce94982c8078ce1603ed12a2.tar.bz2
ayatana-indicator-messages-5b852d2f1fd35640ce94982c8078ce1603ed12a2.zip
in indicator-messages's dispose(), use g_clear_object()
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);