diff options
Diffstat (limited to 'src')
-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); } |