From 8c35850f2388473497f531a412939df2405ed325 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 21 Oct 2021 20:32:05 +1100 Subject: [PATCH] rtpbin: fix leak of pad when a fec encoder and aux sender a created The ghost sink pad retrieved by rtpbin from the aux sender was not freed when there was a previous element (fec encoder) in the chain. Part-of: --- subprojects/gst-plugins-good/gst/rtpmanager/gstrtpbin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpbin.c b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpbin.c index 39596cc91a..01e8dff2c1 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpbin.c +++ b/subprojects/gst-plugins-good/gst/rtpmanager/gstrtpbin.c @@ -4842,6 +4842,7 @@ create_send_rtp (GstRtpBin * rtpbin, GstPadTemplate * templ, const gchar * name) if (ret != GST_PAD_LINK_OK) { goto aux_link_failed; } + gst_object_unref (sinkpad); } prev = aux; } else {