mxf: Fix memory leak

gst_structure_id_set() will copy GstStructures instead of taking
the ownership.
This commit is contained in:
Sebastian Dröge 2009-02-28 20:42:49 +01:00
parent b5b2e44563
commit ed72bba6a2

View file

@ -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;
}