Code cleanup
Use g_slist_free_full more consistently. This commit just converts the obvious cases where g_slist_forall is directly followed by g_slist_free.
This commit is contained in:
		| @ -1497,11 +1497,7 @@ gtk_recent_info_free (GtkRecentInfo *recent_info) | ||||
|  | ||||
|   if (recent_info->applications) | ||||
|     { | ||||
|       g_slist_foreach (recent_info->applications, | ||||
|                        (GFunc) recent_app_info_free, | ||||
|                        NULL); | ||||
|       g_slist_free (recent_info->applications); | ||||
|  | ||||
|       g_slist_free_full (recent_info->applications, (GDestroyNotify)recent_app_info_free); | ||||
|       recent_info->applications = NULL; | ||||
|     } | ||||
|  | ||||
| @ -1510,11 +1506,7 @@ gtk_recent_info_free (GtkRecentInfo *recent_info) | ||||
|  | ||||
|   if (recent_info->groups) | ||||
|     { | ||||
|       g_slist_foreach (recent_info->groups, | ||||
|                        (GFunc) g_free, | ||||
|                        NULL); | ||||
|       g_slist_free (recent_info->groups); | ||||
|  | ||||
|       g_slist_free_full (recent_info->groups, g_free); | ||||
|       recent_info->groups = NULL; | ||||
|     } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Matthias Clasen
					Matthias Clasen