rtpmux: Don't leak gvalue from iterator

This commit is contained in:
Olivier Crête 2012-01-25 15:43:01 +01:00
parent bc1067ce4b
commit 73d57f1848

View file

@ -215,6 +215,7 @@ gst_rtp_mux_src_event_real (GstRTPMux * rtp_mux, GstEvent * event)
case GST_ITERATOR_OK: case GST_ITERATOR_OK:
gst_event_ref (event); gst_event_ref (event);
result |= gst_pad_push_event (g_value_get_object (&item), event); result |= gst_pad_push_event (g_value_get_object (&item), event);
g_value_reset (&item);
break; break;
case GST_ITERATOR_RESYNC: case GST_ITERATOR_RESYNC:
gst_iterator_resync (iter); gst_iterator_resync (iter);