diff options
author | Krzysztof Błaszkowski <kb at sysmikro.com.pl> | 2009-06-25 13:18:14 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-06-25 13:18:14 +0200 |
commit | 9fbdfefc568d81eb604717885307c5fe353ec5d5 (patch) | |
tree | 4dcab943bf88f79679be774c65de1275ab1a3755 | |
parent | 32a3d6e717204b8d9cc1e2d9dc9a8e027962b89c (diff) |
rtpdec: fix some buffer leaks
-rw-r--r-- | gst/rtsp/gstrtpdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c index bacfea193..5279713e0 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 } |