Commit 36eb0436 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

substtml: Fix leak on error

Fix CID #1346962
parent 3f849571
......@@ -409,6 +409,7 @@ static text_segment_t *ParseTTMLSubtitles( decoder_t *p_dec, subpicture_updater_
if ( PushStyle( &p_style_stack, p_style ) == false )
{
text_segment_Delete( p_segment );
goto fail;
}
p_segment->style = CurrentStyle( p_style_stack );
......
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