summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-07-01 15:15:49 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-07-02 00:15:49 -0400
commit5d21b0815a4a6057c7a33d8dfba3f1b3c8894eea (patch)
tree4b1edec2ce23034cab362eb916c9e745efde4e89
parent7950499805315c637d7347a47f82d97af53a3a5a (diff)
rtpmux: Don't leak invalid buffers
-rw-r--r--gst/rtpmux/gstrtpmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 47f42c943..27da522df 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/gstrtpmux.c
@@ -318,6 +318,7 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
if (!gst_rtp_buffer_validate (buffer)) {
+ gst_buffer_unref (buffer);
GST_ERROR_OBJECT (rtp_mux, "Invalid RTP buffer");
gst_object_unref (rtp_mux);
return GST_FLOW_ERROR;