From f3c2f612ce8565e1b9b9447a424900b1908e6611 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 21 Nov 2022 15:11:21 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index bcaf9b0..2ab18ef 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -3483,6 +3483,7 @@ copy_sticky_events (GstPad * pad, GstEvent ** event, gpointer user_data) gst_rtspsrc_update_src_event (data->src, data->stream, gst_event_ref (*event)); gst_pad_store_sticky_event (data->stream->srcpad, new_event); + gst_event_unref (new_event); return TRUE; } -- 2.7.4