summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-17 17:37:49 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-21 16:16:32 +0100
commite11f0be1615822e8575c500eb2e25755465ad61d (patch)
tree7a5a69a12495e957d50cf88419f85fc2c0f1822d /gst
parent2a93712ea1511b8a07d51d03ce8194bf1f59379c (diff)
downloadgst-plugins-bad-e11f0be1615822e8575c500eb2e25755465ad61d.tar.gz
gst-plugins-bad-e11f0be1615822e8575c500eb2e25755465ad61d.tar.bz2
gst-plugins-bad-e11f0be1615822e8575c500eb2e25755465ad61d.zip
mxfdemux: Set free'd memory to NULL to prevent a double free later in some cases
Diffstat (limited to 'gst')
-rw-r--r--gst/mxf/mxfdemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index d1badaf0..79c9fba7 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -835,6 +835,7 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux)
if (!caps && new) {
GST_WARNING_OBJECT (demux, "No caps created, ignoring stream");
g_free (etrack->mapping_data);
+ etrack->mapping_data = NULL;
if (etrack->tags)
gst_tag_list_free (etrack->tags);
goto next;