mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue