Commit 43b0f24c authored by Christophe Mutricy's avatar Christophe Mutricy

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
parent 89036e18
...@@ -1724,7 +1724,7 @@ static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out, ...@@ -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_sub = stream_MemoryNew( VLC_OBJECT(p_filter),
p_region_in->psz_html, p_region_in->psz_html,
strlen( p_region_in->psz_html ), strlen( p_region_in->psz_html ),
VLC_FALSE ); VLC_TRUE );
if( p_sub ) if( p_sub )
{ {
p_xml = xml_Create( p_filter ); p_xml = xml_Create( p_filter );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment