diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/rtp/gstrtpmp4vdepay.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2006-04-11 Tim-Philipp Müller <tim at centricular dot net> + * gst/rtp/gstrtpmp4vdepay.c: (gst_rtp_mp4v_depay_process): + Don't leak memory allocated by gst_buffer_new_and_alloc() by + overwriting GST_BUFFER_MALLOCDATA. + +2006-04-11 Tim-Philipp Müller <tim at centricular dot net> + * ext/libpng/gstpngdec.c: (gst_pngdec_init), (user_endrow_callback), (user_end_callback), (gst_pngdec_caps_create_and_set), (gst_pngdec_chain), diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c index fe0b4e5a..5106916a 100644 --- a/gst/rtp/gstrtpmp4vdepay.c +++ b/gst/rtp/gstrtpmp4vdepay.c @@ -203,8 +203,8 @@ gst_rtp_mp4v_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) avail = gst_adapter_available (rtpmp4vdepay->adapter); - outbuf = gst_buffer_new_and_alloc (avail); - + outbuf = gst_buffer_new (); + GST_BUFFER_SIZE (outbuf) = avail; GST_BUFFER_MALLOCDATA (outbuf) = gst_adapter_take (rtpmp4vdepay->adapter, avail); GST_BUFFER_DATA (outbuf) = GST_BUFFER_MALLOCDATA (outbuf); |