From 4bcd50ccbdc5b34d200d898875a35ef59ab1c10b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 25 Mar 2009 01:28:38 +0000 Subject: [PATCH] rtpmp4apay,rtpmp4depay: fix buffer leaks in AAC payloader and depayloader --- gst/rtp/gstrtpmp4adepay.c | 3 +++ gst/rtp/gstrtpmp4apay.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c index cb8735d06..15dfb0dca 100644 --- a/gst/rtp/gstrtpmp4adepay.c +++ b/gst/rtp/gstrtpmp4adepay.c @@ -316,6 +316,8 @@ gst_rtp_mp4a_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) ("Packet invalid"), ("Not all payload consumed: " "possible wrongly encoded packet.")); } + + gst_buffer_unref (outbuf); } return NULL; @@ -324,6 +326,7 @@ wrong_size: { GST_ELEMENT_WARNING (rtpmp4adepay, STREAM, DECODE, ("Packet did not validate"), ("wrong packet size")); + gst_buffer_unref (outbuf); return NULL; } } diff --git a/gst/rtp/gstrtpmp4apay.c b/gst/rtp/gstrtpmp4apay.c index 6d18bd06f..f4c9d255a 100644 --- a/gst/rtp/gstrtpmp4apay.c +++ b/gst/rtp/gstrtpmp4apay.c @@ -447,6 +447,9 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload, fragmented = TRUE; } + + gst_buffer_unref (buffer); + return ret; } -- 2.34.1