gstrtpssrcdemux: fix element leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 12 Jan 2012 18:23:42 +0000 (18:23 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 12 Jan 2012 18:23:42 +0000 (18:23 +0000)
gst/rtpmanager/gstrtpssrcdemux.c

index e4dd5697b5a7b8aca8fe4e72bab31c9d7781a575..523f9c5093080e7a6a0ea21e050ff54bd4b4a3ea 100644 (file)
@@ -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;
 }