[vlc-commits] ttml demux: Fix memory leak
Hugo Beauzée-Luyssen
git at videolan.org
Thu Sep 15 14:22:39 CEST 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 15 14:20:10 2016 +0200| [bcb99d55e5095ba2198c29f6dabffa4741b2a763] | committer: Hugo Beauzée-Luyssen
ttml demux: Fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bcb99d55e5095ba2198c29f6dabffa4741b2a763
---
modules/demux/ttml.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index ce979fd..a3c806b 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -701,11 +701,14 @@ static int ReadTTML( demux_t* p_demux )
p_subtitle->psz_text = psz_text;
p_sys->i_subtitles++;
+ ClearNode( p_node );
}
- else if( ParseTimeOnSpan( p_sys , psz_text ) == VLC_SUCCESS )
- continue;
else
- goto error;
+ {
+ ClearNode( p_node );
+ if( ParseTimeOnSpan( p_sys , psz_text ) != VLC_SUCCESS )
+ goto error;
+ }
}
else
{
More information about the vlc-commits
mailing list