summaryrefslogtreecommitdiff
path: root/gtk/gtktextbufferrichtext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktextbufferrichtext.c')
-rw-r--r--gtk/gtktextbufferrichtext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtktextbufferrichtext.c b/gtk/gtktextbufferrichtext.c
index e4e6836afc..071f5e1c6c 100644
--- a/gtk/gtktextbufferrichtext.c
+++ b/gtk/gtktextbufferrichtext.c
@@ -797,8 +797,7 @@ free_format (GtkRichTextFormat *format)
static void
free_format_list (GList *formats)
{
- g_list_foreach (formats, (GFunc) free_format, NULL);
- g_list_free (formats);
+ g_list_free_full (formats, (GDestroyNotify) free_format);
}
static GQuark