flacparse: Free GstBaseParseFrame if pushing a header failed

This commit is contained in:
Matej Knopp 2013-09-03 10:10:01 +02:00 committed by Sebastian Dröge
parent edf6d28765
commit 73751dbbe7

View file

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