Index: gdk-pixbuf/gdk-pixbuf.c =================================================================== RCS file: /cvs/gnome/gtk+/gdk-pixbuf/gdk-pixbuf.c,v retrieving revision 1.70 diff -u -p -r1.70 gdk-pixbuf.c --- gdk-pixbuf/gdk-pixbuf.c 31 Aug 2005 15:18:41 -0000 1.70 +++ gdk-pixbuf/gdk-pixbuf.c 13 Apr 2006 13:41:39 -0000 @@ -291,6 +291,7 @@ gdk_pixbuf_new (GdkColorspace colorspace return NULL; buf = g_try_malloc (bytes); + g_mem_mark_type (buf, G_MEM_TYPE_PIXBUF_DATA, NULL); if (!buf) return NULL; @@ -328,6 +329,7 @@ gdk_pixbuf_copy (const GdkPixbuf *pixbuf buf = g_try_malloc (size * sizeof (guchar)); if (!buf) return NULL; + g_mem_mark_type (buf, G_MEM_TYPE_PIXBUF_DATA, NULL); memcpy (buf, pixbuf->pixels, size); Index: gdk-pixbuf/io-png.c =================================================================== RCS file: /cvs/gnome/gtk+/gdk-pixbuf/io-png.c,v retrieving revision 1.64 diff -u -p -r1.64 io-png.c --- gdk-pixbuf/io-png.c 10 Feb 2006 19:02:38 -0000 1.64 +++ gdk-pixbuf/io-png.c 13 Apr 2006 13:41:39 -0000 @@ -225,7 +225,9 @@ png_text_to_pixbuf_option (png_text te static png_voidp png_malloc_callback (png_structp o, png_size_t size) { - return g_try_malloc (size); + gpointer data = g_try_malloc (size); + g_mem_mark_type (data, G_MEM_TYPE_PIXBUF_DATA, NULL); + return data; } static void