From: Tim-Philipp Müller Date: Wed, 23 Nov 2011 00:56:26 +0000 (+0000) Subject: matroskaparse: don't leak stream headers X-Git-Tag: 1.19.3~509^2~7136^2~255 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80be58c4f586462b5d904fb4e7fdc5308e9d9d7d;p=platform%2Fupstream%2Fgstreamer.git matroskaparse: don't leak stream headers https://bugzilla.gnome.org/show_bug.cgi?id=664548 --- diff --git a/gst/matroska/matroska-parse.c b/gst/matroska/matroska-parse.c index 75222de..2424baf 100644 --- a/gst/matroska/matroska-parse.c +++ b/gst/matroska/matroska-parse.c @@ -380,6 +380,11 @@ gst_matroska_parse_reset (GstElement * element) gst_buffer_unref (parse->common.cached_buffer); parse->common.cached_buffer = NULL; } + + if (parse->streamheader != NULL) { + gst_buffer_unref (parse->streamheader); + parse->streamheader = NULL; + } } static GstFlowReturn