[vlc-commits] text_renderer: freetype: fix memory leak in AnalyzeParagraph
Filip Roséen
git at videolan.org
Sat Jul 21 23:44:54 CEST 2018
vlc | branch: master | Filip Roséen <filip at atch.se> | Sat Jul 21 23:14:57 2018 +0200| [a2b5b5337d1943614491f875bef827941699e59d] | committer: Jean-Baptiste Kempf
text_renderer: freetype: fix memory leak in AnalyzeParagraph
fixes: #20881
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a2b5b5337d1943614491f875bef827941699e59d
---
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;
More information about the vlc-commits
mailing list