[vlc-devel] [PATCH 3/3] ttml: Do not use deallocated pointer

Boris Egorov egorov at linux.com
Fri Oct 23 11:42:25 CEST 2015


Signed-off-by: Boris Egorov <egorov at linux.com>
---
 modules/codec/substtml.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index db2a9ba..f5a217d 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -309,8 +309,8 @@ static void ParseTTMLStyle( decoder_t *p_dec, xml_reader_t* p_reader )
     }
     if ( p_ttml_style->psz_styleid == NULL )
     {
-        free( p_ttml_style );
         free( p_ttml_style->font_style->psz_fontname );
+        free( p_ttml_style );
         return ;
     }
 
-- 
2.6.1



More information about the vlc-devel mailing list