[vlc-commits] ttml codec: Fix leak on error
Hugo Beauzée-Luyssen
git at videolan.org
Thu Sep 15 11:36:10 CEST 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Sep 15 11:14:56 2016 +0200| [17b1391123ae40fa094353a0a4bc87d61372bd99] | committer: Hugo Beauzée-Luyssen
ttml codec: Fix leak on error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17b1391123ae40fa094353a0a4bc87d61372bd99
---
modules/codec/substtml.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index ff7b987..b45d8e4 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -588,7 +588,10 @@ static text_segment_t *ParseTTMLSubtitles( decoder_t *p_dec, subpicture_updater_
MergeTTMLStyle( p_style, p_style_stack->p_style );
if( PushStyle( &p_style_stack, p_style ) == false )
+ {
+ CleanupStyle( p_style );
goto fail;
+ }
}
else if( i_type == XML_READER_TEXT )
More information about the vlc-commits
mailing list