From: Christophe Mutricy Date: Sat, 17 Mar 2007 00:31:51 +0000 (+0000) Subject: Fix double free and a 1 octet per subtitle memleak X-Git-Tag: 0.9.0-test0~8109 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=43b0f24c15b32026b1ba620dd7810598821e270a;p=vlc Fix double free and a 1 octet per subtitle memleak 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 --- diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c index 20030c88f4..d69d5e678c 100644 --- a/modules/misc/freetype.c +++ b/modules/misc/freetype.c @@ -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 );