[0.11] gst-plugins-bad: cogmse: fix possible buffer leak

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 04:23:56 PST 2012


Module: gst-plugins-bad
Branch: 0.11
Commit: 2f78acb42a1527768c6f4114ed3064c1e640c6b7
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=2f78acb42a1527768c6f4114ed3064c1e640c6b7

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Fri Jan 13 11:22:21 2012 +0000

cogmse: fix possible buffer leak

---

 ext/cog/gstcogmse.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ext/cog/gstcogmse.c b/ext/cog/gstcogmse.c
index 8a17e8f..6b6ecf8 100644
--- a/ext/cog/gstcogmse.c
+++ b/ext/cog/gstcogmse.c
@@ -208,6 +208,7 @@ gst_mse_finalize (GObject * object)
   gst_object_unref (fs->sinkpad_test);
   g_mutex_free (fs->lock);
   g_cond_free (fs->cond);
+  gst_buffer_replace (&fs->buffer_ref, NULL);
 }
 
 static GstCaps *



More information about the gstreamer-commits mailing list