[vlc-devel] commit: Fix memleak ( Rafaël Carré )

git version control git at videolan.org
Mon May 5 17:32:34 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May  5 17:33:40 2008 +0200| [8c8eae269b78a9f1f9ea88868ffd612240f48913]

Fix memleak

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8c8eae269b78a9f1f9ea88868ffd612240f48913
---

 modules/misc/freetype.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 7d13d03..6aa4846 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -1293,6 +1293,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
             glyph_size.xMin + ((FT_BitmapGlyph)tmp_glyph)->left;
         if( line.xMax > (int)p_filter->fmt_out.video.i_visible_width - 20 )
         {
+            FT_Done_Glyph( (FT_Glyph)p_line->pp_glyphs[ i ] );
             p_line->pp_glyphs[ i ] = NULL;
             FreeLine( p_line );
             p_line = NewLine( strlen( psz_string ));




More information about the vlc-devel mailing list