vlc/vlc-3.0 | branch: master | Filip Roséen <[email protected]> | Sat Jul 21 23:14:57 2018 +0200| [410bff0959c0e2a8b9dfec20fe85a57484580461] | committer: Francois Cartegnie
text_renderer: freetype: fix memory leak in AnalyzeParagraph fixes: #20881 Signed-off-by: Jean-Baptiste Kempf <[email protected]> (cherry picked from commit a2b5b5337d1943614491f875bef827941699e59d) Signed-off-by: Francois Cartegnie <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=410bff0959c0e2a8b9dfec20fe85a57484580461 --- 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 ab95466ff6..5e8eae509a 100644 --- a/modules/text_renderer/freetype/text_layout.c +++ b/modules/text_renderer/freetype/text_layout.c @@ -400,6 +400,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; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
