gst/gdp/gstgdppay.c: Close a buffer memory leak. Fixes bug #534071.
authorAntoine Tremblay <hexa00@gmail.com>
Wed, 21 May 2008 06:45:22 +0000 (06:45 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 21 May 2008 06:45:22 +0000 (06:45 +0000)
Original commit message from CVS:
Patch by: Antoine Tremblay <hexa00 at gmail dot com>
* gst/gdp/gstgdppay.c: (gst_gdp_pay_chain):
Close a buffer memory leak. Fixes bug #534071.

ChangeLog
gst/gdp/gstgdppay.c

index 8170e00..269412d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2008-05-21  Sebastian Dröge  <slomo@circular-chaos.org>
 
+       Patch by: Antoine Tremblay <hexa00 at gmail dot com>
+
+       * gst/gdp/gstgdppay.c: (gst_gdp_pay_chain):
+       Close a buffer memory leak. Fixes bug #534071.
+
+2008-05-21  Sebastian Dröge  <slomo@circular-chaos.org>
+
        * gst-libs/gst/rtsp/gstrtsptransport.h:
        Make the GstRTSPTransport struct members public as there are no
        setters/getters and it's supposed to be changed directly.
index 57e93b8..326848b 100644 (file)
@@ -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);
   }