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

Filip Roséen git at videolan.org
Mon Aug 19 17:36:55 CEST 2019


vlc/vlc-3.0 | branch: master | Filip Roséen <filip at atch.se> | 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 <jb at videolan.org>
(cherry picked from commit a2b5b5337d1943614491f875bef827941699e59d)
Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

> 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;



More information about the vlc-commits mailing list