From e1a8393ba7ec3c54649a288f1b1f51474d122394 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 8 Jan 2021 08:39:32 -0300 Subject: [PATCH] encoding-profile: Plug a leak of factory list Part-of: --- gst-libs/gst/pbutils/encoding-profile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index 65d6277ca6..6502a634c7 100644 --- a/gst-libs/gst/pbutils/encoding-profile.c +++ b/gst-libs/gst/pbutils/encoding-profile.c @@ -1758,6 +1758,9 @@ create_encoding_profile_from_caps (GstCaps * caps, gchar * preset_name, GST_ENCODING_PROFILE (gst_encoding_container_profile_new ("User profile", "User profile", caps, NULL)); + if (factories) + gst_plugin_feature_list_free (factories); + done: if (factory_name && profile) gst_encoding_profile_set_preset_name (profile, factory_name); -- 2.34.1