ogg: fix memory leak in gst_ogg_parse_new_stream
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Mon, 1 Aug 2016 14:52:11 +0000 (15:52 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Wed, 3 Aug 2016 16:12:43 +0000 (17:12 +0100)
Avoid leaking the stream object

https://bugzilla.gnome.org/show_bug.cgi?id=769299

ext/ogg/gstoggparse.c

index 1d7107b..b9754a1 100644 (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;
   }