ges-structured-interface: Fix memory leak of invalid fields GList

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7440>
This commit is contained in:
Sebastian Dröge 2024-09-02 14:07:38 +03:00 committed by Backport Bot
parent 5cfa9dc0e0
commit f068b20eb4

View file

@ -197,6 +197,7 @@ _check_fields (GstStructure * structure, FieldsError fields_error,
if (error)
*error = g_error_new_literal (GES_ERROR, 0, msg->str);
g_list_free (fields_error.invalid_fields);
g_string_free (msg, TRUE);
return FALSE;