mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
gst/rtp/gstrtpmp4vdepay.c: Don't leak memory allocated by gst_buffer_new_and_alloc() by overwriting GST_BUFFER_MALLOC...
Original commit message from CVS: * 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.
This commit is contained in:
parent
ea46530357
commit
f90f5bd8bf
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2006-04-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/libpng/gstpngdec.c: (gst_pngdec_init),
|
* ext/libpng/gstpngdec.c: (gst_pngdec_init),
|
||||||
|
|
|
@ -203,8 +203,8 @@ gst_rtp_mp4v_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf)
|
||||||
|
|
||||||
avail = gst_adapter_available (rtpmp4vdepay->adapter);
|
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_BUFFER_MALLOCDATA (outbuf) =
|
||||||
gst_adapter_take (rtpmp4vdepay->adapter, avail);
|
gst_adapter_take (rtpmp4vdepay->adapter, avail);
|
||||||
GST_BUFFER_DATA (outbuf) = GST_BUFFER_MALLOCDATA (outbuf);
|
GST_BUFFER_DATA (outbuf) = GST_BUFFER_MALLOCDATA (outbuf);
|
||||||
|
|
Loading…
Reference in a new issue