From e44ce404555dfea16891b5a7a727955d860d0cdb Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Tue, 23 Jun 2015 17:11:57 +0900 Subject: [PATCH] flacparse: fix possible memory leak when buffer is stored to seektable, and stop gets called due to corrupt flac file, then the seektable is not being released https://bugzilla.gnome.org/show_bug.cgi?id=751364 --- gst/audioparsers/gstflacparse.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 93ff7bde41..154e133cea 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -366,6 +366,10 @@ gst_flac_parse_stop (GstBaseParse * parse) gst_toc_unref (flacparse->toc); flacparse->toc = NULL; } + if (flacparse->seektable) { + gst_buffer_unref (flacparse->seektable); + flacparse->seektable = NULL; + } g_list_foreach (flacparse->headers, (GFunc) gst_mini_object_unref, NULL); g_list_free (flacparse->headers);