Commit b651591e authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

demux: ogg: fix memory leaks

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c111bfea
...@@ -2203,7 +2203,9 @@ static void Ogg_CleanSpecificData( logical_stream_t *p_stream ) ...@@ -2203,7 +2203,9 @@ static void Ogg_CleanSpecificData( logical_stream_t *p_stream )
#ifdef HAVE_LIBVORBIS #ifdef HAVE_LIBVORBIS
if ( p_stream->fmt.i_codec == VLC_CODEC_VORBIS ) 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 ); FREENULL( p_stream->special.vorbis.p_info );
vorbis_comment_clear( p_stream->special.vorbis.p_comment );
FREENULL( p_stream->special.vorbis.p_comment ); FREENULL( p_stream->special.vorbis.p_comment );
p_stream->special.vorbis.i_headers_flags = 0; p_stream->special.vorbis.i_headers_flags = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment