Skip to content

Commit

Permalink
encoding-profile: Plug a leak of factory list
Browse files Browse the repository at this point in the history
  • Loading branch information
thiblahute authored and GStreamer Merge Bot committed Feb 10, 2021
1 parent a8fca8d commit e1a8393
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gst-libs/gst/pbutils/encoding-profile.c
Expand Up @@ -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);
Expand Down

0 comments on commit e1a8393

Please sign in to comment.