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

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 18 05:29:44 PST 2012


Module: gst-plugins-bad
Branch: 0.10
Commit: 3606a39c843bf71fa5a1a0846a05f2688f2ecb27
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=3606a39c843bf71fa5a1a0846a05f2688f2ecb27

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