oggdemux: fix chain leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 5 May 2015 16:01:46 +0000 (18:01 +0200)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 26 May 2015 07:28:23 +0000 (08:28 +0100)
Don't leak the building_chain when destroying.

Fix leaks with the validate.http.playback.reverse_playback.vorbis_theora_1_ogg
scenario.

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

ext/ogg/gstoggdemux.c

index 863b759..34f472c 100644 (file)
@@ -2272,6 +2272,9 @@ gst_ogg_demux_finalize (GObject * object)
 
   gst_flow_combiner_free (ogg->flowcombiner);
 
+  if (ogg->building_chain)
+    gst_ogg_chain_free (ogg->building_chain);
+
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }