plugins/elements/gstinputselector.c: Don't leak event on pads that are not linked...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 1 Feb 2008 17:08:18 +0000 (17:08 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:51:12 +0000 (00:51 +0000)
Original commit message from CVS:
* plugins/elements/gstinputselector.c: (gst_selector_pad_event):
Don't leak event on pads that are not linked. Fixes #512826.

plugins/elements/gstinputselector.c

index a4d4618..aef4bfc 100644 (file)
@@ -312,6 +312,8 @@ gst_selector_pad_event (GstPad * pad, GstEvent * event)
   }
   if (forward)
     res = gst_pad_push_event (sel->srcpad, event);
+  else
+    gst_event_unref (event);
 
   gst_object_unref (sel);