Index: ext/libpng/gstpngenc.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-good/ext/libpng/gstpngenc.c,v
retrieving revision 1.46
diff -u -p -r1.46 gstpngenc.c
--- ext/libpng/gstpngenc.c	11 Jul 2007 22:31:06 -0000	1.46
+++ ext/libpng/gstpngenc.c	20 Nov 2007 08:29:54 -0000
@@ -228,7 +228,8 @@ user_write_data (png_structp png_ptr, pn
   pngenc = (GstPngEnc *) png_get_io_ptr (png_ptr);
 
   buffer = gst_buffer_new ();
-  GST_BUFFER_DATA (buffer) = g_memdup (data, length);
+  GST_BUFFER_MALLOCDATA (buffer) = g_memdup (data, length);
+  GST_BUFFER_DATA (buffer) = GST_BUFFER_MALLOCDATA (buffer);
   GST_BUFFER_SIZE (buffer) = length;
 
   if (pngenc->buffer_out) {
