[MOVED FROM GST-P-FARSIGHT] Unref events when they are dropped

20080428180711-3e2dc-eb659787f179562f15402c819f188de398deef2d.gz
This commit is contained in:
Olivier Crete 2008-04-28 18:07:11 +00:00 committed by Edward Hervey
parent f92c1b9234
commit e7413eb0cb

View file

@ -710,7 +710,6 @@ forward_event (GstLiveAdder * adder, GstEvent * event)
gst_iterator_fold (it, (GstIteratorFoldFunction) forward_event_func, &vret,
event);
gst_iterator_free (it);
gst_event_unref (event);
ret = g_value_get_boolean (&vret);
@ -743,8 +742,9 @@ gst_live_adder_src_event (GstPad * pad, GstEvent * event)
/* just forward the rest for now */
result = forward_event (adder, event);
break;
}
gst_event_unref (event);
gst_object_unref (adder);
return result;