[gimp/soc-2010-cage-2] app: cast GtkTargetEntry.target to gchar* when freeing it
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] app: cast GtkTargetEntry.target to gchar* when freeing it
- Date: Thu, 30 Dec 2010 18:13:52 +0000 (UTC)
commit 84316b84e3a53614d26f2eaa45099005425f6812
Author: Michael Natterer <mitch gimp org>
Date: Mon Nov 29 15:41:38 2010 +0100
app: cast GtkTargetEntry.target to gchar* when freeing it
because it was made const in GTK+.
app/widgets/gimpclipboard.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpclipboard.c b/app/widgets/gimpclipboard.c
index 5da1959..83bf847 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]