gst-plugins-good: gstrtpssrcdemux: fix element leak

Vincent Penquerc'h vincent at kemper.freedesktop.org
Thu Jan 12 10:24:30 PST 2012


Module: gst-plugins-good
Branch: master
Commit: 654a04f90c14a05d83ac4f879d541921bbc1f0a8
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=654a04f90c14a05d83ac4f879d541921bbc1f0a8

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Thu Jan 12 18:23:42 2012 +0000

gstrtpssrcdemux: fix element leak

---

 gst/rtpmanager/gstrtpssrcdemux.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gst/rtpmanager/gstrtpssrcdemux.c b/gst/rtpmanager/gstrtpssrcdemux.c
index e4dd569..523f9c5 100644
--- a/gst/rtpmanager/gstrtpssrcdemux.c
+++ b/gst/rtpmanager/gstrtpssrcdemux.c
@@ -742,7 +742,10 @@ gst_rtp_ssrc_demux_iterate_internal_links_sink (GstPad * pad)
 
   it = gst_element_iterate_src_pads (GST_ELEMENT (demux));
 
-  return gst_iterator_filter (it, src_pad_compare_func, (gpointer) prefix);
+  it = gst_iterator_filter (it, src_pad_compare_func, (gpointer) prefix);
+
+  gst_object_unref (demux);
+  return it;
 }
 
 



More information about the gstreamer-commits mailing list