From 9fbdfefc568d81eb604717885307c5fe353ec5d5 Mon Sep 17 00:00:00 2001 From: Krzysztof Błaszkowski Date: Thu, 25 Jun 2009 13:18:14 +0200 Subject: rtpdec: fix some buffer leaks --- gst/rtsp/gstrtpdec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gst/rtsp') diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c index bacfea19..5279713e 100644 --- a/gst/rtsp/gstrtpdec.c +++ b/gst/rtsp/gstrtpdec.c @@ -541,6 +541,7 @@ bad_packet: { GST_ELEMENT_WARNING (rtpdec, STREAM, DECODE, (NULL), ("RTP packet did not validate, dropping")); + gst_buffer_unref (buffer); return GST_FLOW_OK; } } @@ -695,9 +696,11 @@ gst_rtp_dec_chain_rtcp (GstPad * pad, GstBuffer * buffer) bad_packet: { GST_WARNING_OBJECT (src, "got invalid RTCP packet"); + gst_buffer_unref (buffer); return GST_FLOW_OK; } #else + gst_buffer_unref (buffer); return GST_FLOW_OK; #endif } -- cgit