Commit 8172c478 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

matroskamux: Fix leaking of the streamheader buffers

gst_value_set_buffer() increases the refcount and doesn't
take ownership of the buffer.
parent 19216e72
......@@ -2500,6 +2500,7 @@ gst_matroska_mux_stop_streamheader (GstMatroskaMux * mux)
gst_structure_set_value (s, "streamheader", &streamheader);
g_value_unset (&streamheader);
gst_caps_unref (ebml->caps);
gst_buffer_unref (streamheader_buffer);
ebml->caps = caps;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment