mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
[MOVED FROM GST-P-FARSIGHT] Unref events when they are dropped
20080428180711-3e2dc-eb659787f179562f15402c819f188de398deef2d.gz
This commit is contained in:
parent
f92c1b9234
commit
e7413eb0cb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue