From: Wim Taymans Date: Fri, 1 Feb 2008 17:08:18 +0000 (+0000) Subject: plugins/elements/gstinputselector.c: Don't leak event on pads that are not linked... X-Git-Tag: RELEASE-0.10.32~126 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2495420116fabdaa03980158f808cc8f8871fe54;p=platform%2Fupstream%2Fgstreamer.git plugins/elements/gstinputselector.c: Don't leak event on pads that are not linked. Fixes #512826. 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. --- diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c index a4d4618..aef4bfc 100644 --- a/plugins/elements/gstinputselector.c +++ b/plugins/elements/gstinputselector.c @@ -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);