matroskaparse: don't leak stream headers

https://bugzilla.gnome.org/show_bug.cgi?id=664548
This commit is contained in:
Tim-Philipp Müller 2011-11-23 00:56:26 +00:00
parent 7df8122322
commit 80be58c4f5

View file

@ -380,6 +380,11 @@ gst_matroska_parse_reset (GstElement * element)
gst_buffer_unref (parse->common.cached_buffer); gst_buffer_unref (parse->common.cached_buffer);
parse->common.cached_buffer = NULL; parse->common.cached_buffer = NULL;
} }
if (parse->streamheader != NULL) {
gst_buffer_unref (parse->streamheader);
parse->streamheader = NULL;
}
} }
static GstFlowReturn static GstFlowReturn