rtspsrc: Don't leak sticky events

We have incremented the reference 2 lines above, and
gst_pad_store_sticky_event() does not take a reference, therefore release it

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3443>
This commit is contained in:
Edward Hervey 2022-11-21 15:11:21 +01:00 committed by GStreamer Marge Bot
parent 1774d5c87a
commit f3c2f612ce

View file

@ -3483,6 +3483,7 @@ copy_sticky_events (GstPad * pad, GstEvent ** event, gpointer user_data)
gst_rtspsrc_update_src_event (data->src, data->stream, gst_rtspsrc_update_src_event (data->src, data->stream,
gst_event_ref (*event)); gst_event_ref (*event));
gst_pad_store_sticky_event (data->stream->srcpad, new_event); gst_pad_store_sticky_event (data->stream->srcpad, new_event);
gst_event_unref (new_event);
return TRUE; return TRUE;
} }