[vlc-commits] ttml: Do not use deallocated pointer

Boris Egorov git at videolan.org
Fri Oct 23 13:14:22 CEST 2015


vlc | branch: master | Boris Egorov <egorov at linux.com> | Fri Oct 23 15:42:25 2015 +0600| [eed767fc879e8deb7bec0e17e939534a3a34130a] | committer: Jean-Baptiste Kempf

ttml: Do not use deallocated pointer

Signed-off-by: Boris Egorov <egorov at linux.com>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eed767fc879e8deb7bec0e17e939534a3a34130a
---

 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 ;
     }
 



More information about the vlc-commits mailing list