pngdec: match g_malloc() with g_free()

Matching g_malloc() with a g_free() is important when a custom allocator is
installed.
Fixes #583803
This commit is contained in:
John Keeping 2009-05-25 16:33:35 +02:00 committed by Wim Taymans
parent e13e3c6249
commit 32491d5a51

View file

@ -514,7 +514,7 @@ gst_pngdec_task (GstPad * pad)
/* Read the actual picture */
png_read_image (pngdec->png, rows);
free (rows);
g_free (rows);
/* Push the raw RGB frame */
ret = gst_pad_push (pngdec->srcpad, buffer);