Commit 696e4b02 authored by René Stadler's avatar René Stadler Committed by Stefan Kost
Browse files

ext/libpng/gstpngenc.c: Don't leak buffer data memory. Fixes #498395.

Original commit message from CVS:
Patch by: René Stadler <mail at renestadler dot de>
* ext/libpng/gstpngenc.c:
Don't leak buffer data memory. Fixes #498395.
parent 85995839
2007-11-20 Stefan Kost <ensonic@users.sf.net>
Patch by: René Stadler <mail at renestadler dot de>
* ext/libpng/gstpngenc.c:
Don't leak buffer data memory. Fixes #498395.
2007-11-20 Stefan Kost <ensonic@users.sf.net>
 
Patch by: René Stadler <mail at renestadler dot de>
......
......@@ -228,7 +228,8 @@ user_write_data (png_structp png_ptr, png_bytep data, png_uint_32 length)
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) {
......
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