From: Christophe Mutricy Date: Sat, 22 Nov 2008 18:31:04 +0000 (+0000) Subject: Fix my previous commit X-Git-Tag: 1.0.0-pre1~2058 X-Git-Url: https://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=80c485427a5167340f27f43a7cf5620dfe00cede;hp=d434f6cad2651fa3d6134bcc21fe5468d464bb81 Fix my previous commit --- diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c index e3df463f45..b0e8466a44 100644 --- a/modules/demux/subtitle.c +++ b/modules/demux/subtitle.c @@ -2024,8 +2024,10 @@ static int ParseSubViewer1( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx s = TextGetLine( txt ); if( !s ) + { free( psz_text ); return VLC_EGENERIC; + } if( sscanf( s, "[%d:%d:%d]", &h2, &m2, &s2 ) == 3 ) p_subtitle->i_stop = ( (int64_t)h2 * 3600*1000 +