diff options
author | Sven Neumann <sven@gimp.org> | 2007-06-19 15:41:24 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2007-06-19 15:41:24 +0000 |
commit | 721ed985340887204e897317ee7da20d7d1eedcc (patch) | |
tree | 5d7c19761dd16c572a24423e9f25ef23ea656352 /gtk | |
parent | 5de66ab18dd60b2b6f9e95521f41f0df19af31b1 (diff) | |
download | gtk+-721ed985340887204e897317ee7da20d7d1eedcc.tar.gz |
use g_slice_dup().
2007-06-19 Sven Neumann <sven@gimp.org>
* gtk/gtkicontheme.c (gtk_icon_info_copy): use g_slice_dup().
svn path=/trunk/; revision=18189
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkicontheme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index d00e21916a..89c793042a 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2599,7 +2599,8 @@ gtk_icon_info_copy (GtkIconInfo *icon_info) g_return_val_if_fail (icon_info != NULL, NULL); - copy = memcpy (g_slice_new (GtkIconInfo), icon_info, sizeof (GtkIconInfo)); + copy = g_slice_dup (GtkIconInfo, icon_info); + if (copy->cache_pixbuf) g_object_ref (copy->cache_pixbuf); if (copy->pixbuf) |