diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-01-21 15:58:11 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-01-21 15:58:59 +0100 |
commit | 454b1931bcacdd9171b49579b78831f096f2cac8 (patch) | |
tree | 686f48e87520d9b009150c95c4e4e1940cb472a1 /gst/mxf/mxftypes.c | |
parent | 89d9aaee48308fd6a73ae327575adb6b9ac35a60 (diff) | |
download | gstreamer-plugins-bad-454b1931bcacdd9171b49579b78831f096f2cac8.tar.gz |
mxf: Correctly initialize memory
Diffstat (limited to 'gst/mxf/mxftypes.c')
-rw-r--r-- | gst/mxf/mxftypes.c | 3 |
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 { |