summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-28 20:42:49 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-28 20:42:49 +0100
commited72bba6a2816e3ab7653bd45faeb0786223d7ff (patch)
tree3e2f42c53fda13703cd2817959d292e9f92391a3
parentb5b2e44563a4073e44eedee07cc181e6285925ee (diff)
mxf: Fix memory leak
gst_structure_id_set() will copy GstStructures instead of taking the ownership.
-rw-r--r--gst/mxf/mxfmetadata.c1
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;
}