From c00da50c61bcca9c7163565cd0660d0209b75d1f Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 12 Nov 2022 10:00:01 +0100 Subject: [PATCH] encodebasebin: Don't leak muxer pad Part-of: --- subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c b/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c index e8b7af2c1f..85a4913e14 100644 --- a/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c +++ b/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c @@ -2220,6 +2220,7 @@ create_elements_and_pads (GstEncodeBaseBin * ebin) if (!pad) goto no_muxer_ghost_pad; + gst_object_unref (muxerpad); gst_element_add_pad (GST_ELEMENT (ebin), pad); }