Commit 1f8ca468 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

subsdec: fix memory leak

parent b83a2c56
...@@ -946,7 +946,10 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle ) ...@@ -946,7 +946,10 @@ static text_segment_t* ParseSubtitles( int *pi_align, const char *psz_subtitle )
if( !strcasecmp( psz_tagname, "br" ) ) if( !strcasecmp( psz_tagname, "br" ) )
{ {
if ( !AppendCharacter( p_segment, '\n' ) ) if ( !AppendCharacter( p_segment, '\n' ) )
{
free( psz_tagname );
goto fail; goto fail;
}
} }
else if( !strcasecmp( psz_tagname, "b" ) ) else if( !strcasecmp( psz_tagname, "b" ) )
{ {
......
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