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:
parent
487ef12fd1
commit
5cab723651
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user