[vlc-devel] [PATCH] text_renderer: freetype: fix memory leak in AnalyzeParagraph

Filip Roséen filip at atch.se
Sat Jul 21 23:14:57 CEST 2018


fixes: #20881
---
 modules/text_renderer/freetype/text_layout.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/text_renderer/freetype/text_layout.c b/modules/text_renderer/freetype/text_layout.c
index 6223441276..7a38da6313 100644
--- a/modules/text_renderer/freetype/text_layout.c
+++ b/modules/text_renderer/freetype/text_layout.c
@@ -470,6 +470,7 @@ static int AnalyzeParagraph( paragraph_t *p_paragraph )
     for( int i = 0; i < p_paragraph->i_size; ++i )
         p_paragraph->p_scripts[ i ] =
             hb_unicode_script( p_funcs, p_paragraph->p_code_points[ i ] );
+    hb_unicode_funcs_destroy( p_funcs );
 
     hb_script_t i_last_script;
     int i_last_script_index = -1;
-- 
2.18.0


More information about the vlc-devel mailing list