diff options
author | Paolo Borelli <pborelli@gnome.org> | 2015-08-01 21:30:53 +0200 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2015-08-01 21:30:53 +0200 |
commit | 3fec677da05ff57af0d1732cd0c2b69818df05d9 (patch) | |
tree | 96169cb86791fcee19133af6dd584cfb28fd1e25 /gtk/gtkrecentmanager.c | |
parent | 7921ac510ee61a29b2f93dcd06442df05c7ce900 (diff) | |
download | gtk+-3fec677da05ff57af0d1732cd0c2b69818df05d9.tar.gz |
cleanup: no need to set members to null when freeing the struct
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r-- | gtk/gtkrecentmanager.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index ce749908a5..38c0d8fce0 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -1495,20 +1495,12 @@ gtk_recent_info_free (GtkRecentInfo *recent_info) g_free (recent_info->description); g_free (recent_info->mime_type); - if (recent_info->applications) - { - g_slist_free_full (recent_info->applications, (GDestroyNotify)recent_app_info_free); - recent_info->applications = NULL; - } + g_slist_free_full (recent_info->applications, (GDestroyNotify)recent_app_info_free); if (recent_info->apps_lookup) g_hash_table_destroy (recent_info->apps_lookup); - if (recent_info->groups) - { - g_slist_free_full (recent_info->groups, g_free); - recent_info->groups = NULL; - } + g_slist_free_full (recent_info->groups, g_free); if (recent_info->icon) g_object_unref (recent_info->icon); |