From 4b729086a9f36a978e8e9355da1dce930fec0c44 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 29 Nov 2010 15:41:38 +0100 Subject: [PATCH] app: cast GtkTargetEntry.target to gchar* when freeing it because it was made const in GTK+. --- app/widgets/gimpclipboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/widgets/gimpclipboard.c b/app/widgets/gimpclipboard.c index 5da19591bb..83bf84745e 100644 --- a/app/widgets/gimpclipboard.c +++ b/app/widgets/gimpclipboard.c @@ -681,17 +681,17 @@ gimp_clipboard_free (GimpClipboard *gimp_clip) g_slist_free (gimp_clip->pixbuf_formats); for (i = 0; i < gimp_clip->n_target_entries; i++) - g_free (gimp_clip->target_entries[i].target); + g_free ((gchar *) gimp_clip->target_entries[i].target); g_free (gimp_clip->target_entries); for (i = 0; i < gimp_clip->n_svg_target_entries; i++) - g_free (gimp_clip->svg_target_entries[i].target); + g_free ((gchar *) gimp_clip->svg_target_entries[i].target); g_free (gimp_clip->svg_target_entries); for (i = 0; i < gimp_clip->n_curve_target_entries; i++) - g_free (gimp_clip->curve_target_entries[i].target); + g_free ((gchar *) gimp_clip->curve_target_entries[i].target); g_free (gimp_clip->curve_target_entries);