[0.10] gst-plugins-bad: cogmse: fix pad leaks

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


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

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Thu Jan 12 17:16:32 2012 +0000

cogmse: fix pad leaks

---

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

diff --git a/ext/cog/gstcogmse.c b/ext/cog/gstcogmse.c
index 09f1ffc..8a17e8f 100644
--- a/ext/cog/gstcogmse.c
+++ b/ext/cog/gstcogmse.c
@@ -203,6 +203,9 @@ gst_mse_finalize (GObject * object)
 {
   GstMSE *fs = GST_MSE (object);
 
+  gst_object_unref (fs->srcpad);
+  gst_object_unref (fs->sinkpad_ref);
+  gst_object_unref (fs->sinkpad_test);
   g_mutex_free (fs->lock);
   g_cond_free (fs->cond);
 }



More information about the gstreamer-commits mailing list