]> git.sesse.net Git - vlc/commitdiff
Fix double free and a 1 octet per subtitle memleak
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 17 Mar 2007 00:31:51 +0000 (00:31 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 17 Mar 2007 00:31:51 +0000 (00:31 +0000)
Due to the False in strem_MemoryNew it was clearing psz_html in strem_Delete
and it was leaking the \0 at the end of the string

modules/misc/freetype.c

index 20030c88f4f1b1e87508ec93d595b5de6090043d..d69d5e678c9a44482f38197aeb8370860396a495 100644 (file)
@@ -1724,7 +1724,7 @@ static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
     p_sub = stream_MemoryNew( VLC_OBJECT(p_filter),
                               p_region_in->psz_html,
                               strlen( p_region_in->psz_html ),
-                              VLC_FALSE );
+                              VLC_TRUE );
     if( p_sub )
     {
         p_xml = xml_Create( p_filter );