summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-01-21 15:58:11 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-01-21 15:58:59 +0100
commit454b1931bcacdd9171b49579b78831f096f2cac8 (patch)
tree686f48e87520d9b009150c95c4e4e1940cb472a1
parent89d9aaee48308fd6a73ae327575adb6b9ac35a60 (diff)
mxf: Correctly initialize memory
-rw-r--r--gst/mxf/mxftypes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/mxf/mxftypes.c b/gst/mxf/mxftypes.c
index bacb793f4..e678da63c 100644
--- a/gst/mxf/mxftypes.c
+++ b/gst/mxf/mxftypes.c
@@ -1537,10 +1537,11 @@ mxf_local_tag_add_to_hash_table (const MXFPrimerPack * primer,
GST_DEBUG ("Adding local tag 0x%04x with UL %s and size %u", tag,
mxf_ul_to_string (ul, str), tag_size);
- local_tag = g_slice_new (MXFLocalTag);
+ local_tag = g_slice_new0 (MXFLocalTag);
memcpy (&local_tag->ul, ul, sizeof (MXFUL));
local_tag->size = tag_size;
local_tag->data = g_memdup (tag_data, tag_size);
+ local_tag->g_slice = FALSE;
g_hash_table_insert (*hash_table, &local_tag->ul, local_tag);
} else {