[vlc-commits] demux: ogg: fix memory leaks

Hannes Domani git at videolan.org
Sat Jan 16 17:34:05 CET 2016


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Jan 15 15:49:47 2016 +0100| [b651591e9a3fa4932f7e2fe8804c304176dbe3aa] | committer: Jean-Baptiste Kempf

demux: ogg: fix memory leaks

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b651591e9a3fa4932f7e2fe8804c304176dbe3aa
---

 modules/demux/ogg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index cc69c0c..26ad579 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2203,7 +2203,9 @@ static void Ogg_CleanSpecificData( logical_stream_t *p_stream )
 #ifdef HAVE_LIBVORBIS
     if ( p_stream->fmt.i_codec == VLC_CODEC_VORBIS )
     {
+        vorbis_info_clear( p_stream->special.vorbis.p_info );
         FREENULL( p_stream->special.vorbis.p_info );
+        vorbis_comment_clear( p_stream->special.vorbis.p_comment );
         FREENULL( p_stream->special.vorbis.p_comment );
         p_stream->special.vorbis.i_headers_flags = 0;
     }



More information about the vlc-commits mailing list