diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-12-08 15:38:41 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-12-08 17:30:35 -0500 |
commit | 6c7e5039c784a43e884b3ae3a7ce7e5d59111a56 (patch) | |
tree | 4078a6d5c32c31ec18ca8a4105e39a9c79029bbf /gtk | |
parent | 5047d503f38346cd6eb2506aaa78953893656b03 (diff) | |
download | gtk+-6c7e5039c784a43e884b3ae3a7ce7e5d59111a56.tar.gz |
Drop a few unneeded ifs
It does not hurt to pass NULL to g_list_free().
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkappchooserwidget.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c index ebe1d00065..01f9a4b908 100644 --- a/gtk/gtkappchooserwidget.c +++ b/gtk/gtkappchooserwidget.c @@ -798,17 +798,10 @@ gtk_app_chooser_widget_real_add_items (GtkAppChooserWidget *self) if (default_app != NULL) g_object_unref (default_app); - if (all_applications != NULL) - g_list_free_full (all_applications, g_object_unref); - - if (recommended_apps != NULL) - g_list_free_full (recommended_apps, g_object_unref); - - if (fallback_apps != NULL) - g_list_free_full (fallback_apps, g_object_unref); - - if (exclude_apps != NULL) - g_list_free (exclude_apps); + g_list_free_full (all_applications, g_object_unref); + g_list_free_full (recommended_apps, g_object_unref); + g_list_free_full (fallback_apps, g_object_unref); + g_list_free (exclude_apps); } static void |