summaryrefslogtreecommitdiff
path: root/plugins/gtk+/glade-icon-sources.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gtk+/glade-icon-sources.c')
-rw-r--r--plugins/gtk+/glade-icon-sources.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/gtk+/glade-icon-sources.c b/plugins/gtk+/glade-icon-sources.c
index 3ed25b83..c2bb57c9 100644
--- a/plugins/gtk+/glade-icon-sources.c
+++ b/plugins/gtk+/glade-icon-sources.c
@@ -49,9 +49,8 @@ static void
icon_set_free (GList *list)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- g_list_foreach (list, (GFunc) gtk_icon_source_free, NULL);
+ g_list_free_full (list, (GDestroyNotify) gtk_icon_source_free);
G_GNUC_END_IGNORE_DEPRECATIONS
- g_list_free (list);
}