From a8dda35c1bfb7804723ec4edb1b2b5f17fdf31ec Mon Sep 17 00:00:00 2001 From: Antoine Tremblay Date: Wed, 21 May 2008 06:45:22 +0000 Subject: [PATCH] gst/gdp/gstgdppay.c: Close a buffer memory leak. Fixes bug #534071. Original commit message from CVS: Patch by: Antoine Tremblay * gst/gdp/gstgdppay.c: (gst_gdp_pay_chain): Close a buffer memory leak. Fixes bug #534071. --- ChangeLog | 7 +++++++ gst/gdp/gstgdppay.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8170e0000..269412db8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-05-21 Sebastian Dröge + + Patch by: Antoine Tremblay + + * gst/gdp/gstgdppay.c: (gst_gdp_pay_chain): + Close a buffer memory leak. Fixes bug #534071. + 2008-05-21 Sebastian Dröge * gst-libs/gst/rtsp/gstrtsptransport.h: diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index 57e93b8f1..326848bea 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -587,6 +587,9 @@ gst_gdp_pay_chain (GstPad * pad, GstBuffer * buffer) GST_BUFFER_TIMESTAMP (outbuffer) = GST_BUFFER_TIMESTAMP (buffer); GST_BUFFER_DURATION (outbuffer) = 0; GST_BUFFER_FLAG_SET (outbuffer, GST_BUFFER_FLAG_IN_CAPS); + + if (this->caps_buf) + gst_buffer_unref (this->caps_buf); this->caps_buf = outbuffer; gst_gdp_pay_reset_streamheader (this); } -- 2.34.1