diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-08-19 15:42:48 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-08-19 15:42:48 -0500 |
commit | 302ec8cd11ba3ec3a2d23d78bdd41974e92f63f6 (patch) | |
tree | af00b0c3130de7bf0c82c7eaf0a0ec58ec56ab42 | |
parent | 75ae6cbac0dc1d2c423d27a4d9f460a87139f0fe (diff) | |
download | ayatana-indicator-messages-302ec8cd11ba3ec3a2d23d78bdd41974e92f63f6.tar.gz ayatana-indicator-messages-302ec8cd11ba3ec3a2d23d78bdd41974e92f63f6.tar.bz2 ayatana-indicator-messages-302ec8cd11ba3ec3a2d23d78bdd41974e92f63f6.zip |
in app-section.c's dispose(), use g_clear_object() for priv.ids and priv.keyfile
-rw-r--r-- | src/app-section.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/app-section.c b/src/app-section.c index f6cf15f..179be59 100644 --- a/src/app-section.c +++ b/src/app-section.c @@ -225,16 +225,8 @@ app_section_dispose (GObject *object) } g_clear_object (&priv->remote_menu); - - if (priv->ids != NULL) { - g_object_unref(priv->ids); - priv->ids = NULL; - } - - if (priv->appinfo != NULL) { - g_object_unref(priv->appinfo); - priv->appinfo = NULL; - } + g_clear_object (&priv->ids); + g_clear_object (&priv->appinfo); G_OBJECT_CLASS (app_section_parent_class)->dispose (object); } |