From 73751dbbe7d37d7847e22e81e3faf793af48bbb8 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Tue, 3 Sep 2013 10:10:01 +0200 Subject: [PATCH] flacparse: Free GstBaseParseFrame if pushing a header failed --- gst/audioparsers/gstflacparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index cddc62a..8ac2804 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -1347,9 +1347,9 @@ push_headers: frame.buffer = buf; frame.overhead = -1; res = gst_base_parse_push_frame (GST_BASE_PARSE (flacparse), &frame); + gst_base_parse_frame_free (&frame); if (res != GST_FLOW_OK) break; - gst_base_parse_frame_free (&frame); } g_list_foreach (flacparse->headers, (GFunc) gst_mini_object_unref, NULL); g_list_free (flacparse->headers); -- 2.7.4