matroskamux: Fix leaking of the streamheader buffers

gst_value_set_buffer() increases the refcount and doesn't
take ownership of the buffer.
This commit is contained in:
Sebastian Dröge 2010-06-25 19:40:06 +02:00
parent 19216e7218
commit 8172c478aa

View file

@ -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;
}