diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-28 20:42:49 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-28 20:42:49 +0100 |
commit | ed72bba6a2816e3ab7653bd45faeb0786223d7ff (patch) | |
tree | 3e2f42c53fda13703cd2817959d292e9f92391a3 /gst/mxf/mxfmetadata.c | |
parent | b5b2e44563a4073e44eedee07cc181e6285925ee (diff) | |
download | gstreamer-plugins-bad-ed72bba6a2816e3ab7653bd45faeb0786223d7ff.tar.gz |
mxf: Fix memory leak
gst_structure_id_set() will copy GstStructures instead of taking
the ownership.
Diffstat (limited to 'gst/mxf/mxfmetadata.c')
-rw-r--r-- | gst/mxf/mxfmetadata.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c index 9e3af62f5..6dcce04a5 100644 --- a/gst/mxf/mxfmetadata.c +++ b/gst/mxf/mxfmetadata.c @@ -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; } |