From ed72bba6a2816e3ab7653bd45faeb0786223d7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 28 Feb 2009 20:42:49 +0100 Subject: mxf: Fix memory leak gst_structure_id_set() will copy GstStructures instead of taking the ownership. --- gst/mxf/mxfmetadata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/mxf/mxfmetadata.c b/gst/mxf/mxfmetadata.c index 9e3af62f..6dcce04a 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; } -- cgit v1.2.1