ladspa: Don't leak plugin information on registration

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>
This commit is contained in:
Edward Hervey 2022-11-04 08:40:24 +01:00 committed by GStreamer Marge Bot
parent 8ca2a2a230
commit 685a4aaaa7

View file

@ -250,9 +250,10 @@ ladspa_describe_plugin (const gchar * file_name, const gchar * entry_name,
"control-out", G_TYPE_UINT, control_out, NULL); "control-out", G_TYPE_UINT, control_out, NULL);
g_value_init (&value, GST_TYPE_STRUCTURE); g_value_init (&value, GST_TYPE_STRUCTURE);
g_value_set_boxed (&value, ladspa_meta); g_value_take_boxed (&value, ladspa_meta);
gst_structure_set_value (ladspa_meta_all, type_name, &value); gst_structure_set_value (ladspa_meta_all, type_name, &value);
g_value_unset (&value); g_value_unset (&value);
g_free (type_name);
} }
} }