Commit 721ed985 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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
parent 5de66ab1
2007-06-19 Sven Neumann <sven@gimp.org>
* gtk/gtkicontheme.c (gtk_icon_info_copy): use g_slice_dup().
2007-06-19 Sven Neumann <sven@gimp.org>
* gtk/gtktooltips.[ch]: mark the GtkTooltips struct as private.
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment