From: Thibault Saunier Date: Fri, 8 Jan 2021 11:39:32 +0000 (-0300) Subject: encoding-profile: Plug a leak of factory list X-Git-Tag: 1.19.3~511^2~276 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1a8393ba7ec3c54649a288f1b1f51474d122394;p=platform%2Fupstream%2Fgstreamer.git encoding-profile: Plug a leak of factory list Part-of: --- diff --git a/gst-libs/gst/pbutils/encoding-profile.c b/gst-libs/gst/pbutils/encoding-profile.c index 65d6277..6502a63 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);