mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
mxf: Fix memory leak
gst_structure_id_set() will copy GstStructures instead of taking the ownership.
This commit is contained in:
parent
b5b2e44563
commit
ed72bba6a2
1 changed files with 1 additions and 0 deletions
|
@ -1830,6 +1830,7 @@ mxf_metadata_source_package_to_structure (MXFMetadataBase * m)
|
|||
s = mxf_metadata_base_to_structure (MXF_METADATA_BASE (self->descriptor));
|
||||
gst_structure_id_set (ret, MXF_QUARK (DESCRIPTOR), GST_TYPE_STRUCTURE, s,
|
||||
NULL);
|
||||
gst_structure_free (s);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue