event: fix some event leaks

This commit is contained in:
Wim Taymans 2011-06-07 12:06:22 +02:00
parent 2940249a84
commit 28f67f4847
2 changed files with 3 additions and 0 deletions

View file

@ -504,6 +504,7 @@ gst_visual_sink_event (GstPad * pad, GstEvent * event)
gst_event_parse_caps (event, &caps);
res = gst_visual_sink_setcaps (pad, caps);
gst_event_unref (event);
break;
}
case GST_EVENT_SEGMENT:

View file

@ -382,6 +382,8 @@ gst_basertppayload_event_default (GstBaseRTPPayload * basertppayload,
basertppayload_class = GST_BASE_RTP_PAYLOAD_GET_CLASS (basertppayload);
if (basertppayload_class->set_caps)
res = basertppayload_class->set_caps (basertppayload, caps);
gst_event_unref (event);
break;
}
case GST_EVENT_SEGMENT: