ogg: fix memory leak in gst_ogg_parse_new_stream

Avoid leaking the stream object

https://bugzilla.gnome.org/show_bug.cgi?id=769299
This commit is contained in:
Luis de Bethencourt 2016-08-01 15:52:11 +01:00
parent 487ef12fd1
commit 5cab723651

View file

@ -148,6 +148,7 @@ gst_ogg_parse_new_stream (GstOggParse * parser, ogg_page * page)
if (ogg_stream_init (&stream->stream, serialno) != 0) {
GST_ERROR ("Could not initialize ogg_stream struct for serial %08x.",
serialno);
g_slice_free (GstOggStream, stream);
return NULL;
}