From: Mark Nauwelaerts Date: Wed, 27 Oct 2010 09:16:15 +0000 (+0200) Subject: oggdemux: plug some oggstream leaks X-Git-Tag: RELEASE-0.10.32~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4aacb9d2c3877e965fd6f9ee9c48a07cbcbec0c;p=platform%2Fupstream%2Fgst-plugins-base.git oggdemux: plug some oggstream leaks --- diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 28ad3c4..b24bbe9 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -186,6 +186,16 @@ gst_ogg_pad_dispose (GObject * object) g_list_free (pad->continued); pad->continued = NULL; + if (pad->map.caps) { + gst_caps_unref (pad->map.caps); + pad->map.caps = NULL; + } + + if (pad->map.taglist) { + gst_tag_list_free (pad->map.taglist); + pad->map.taglist = NULL; + } + ogg_stream_reset (&pad->map.stream); G_OBJECT_CLASS (gst_ogg_pad_parent_class)->dispose (object);