inputselector: don't leak pads in iterator
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 4 Jun 2009 17:08:16 +0000 (19:08 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:53:49 +0000 (00:53 +0000)
plugins/elements/gstinputselector.c

index 21579e4..832707d 100644 (file)
@@ -1417,6 +1417,7 @@ gst_input_selector_check_eos (GstElement * selector)
         if (!pad->eos) {
           done = TRUE;
         }
+        gst_object_unref (pad);
         break;
       case GST_ITERATOR_RESYNC:
         gst_iterator_resync (it);