vlc | branch: master | Erwan Tulou <[email protected]> | Sat Sep 10 00:25:55 
2011 +0200| [2224fa034a7a205ba9ec810e67e2889a2bca4471] | committer: Erwan Tulou

freetype: fix crash (wrong memory deallocation)

shadow refers to outine or glyph. Only these latter ones need deallocation.

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

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

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 10c8150..2a294f5 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -1776,8 +1776,6 @@ static int GetGlyph( filter_t *p_filter,
         FT_Done_Glyph( glyph );
         if( outline )
             FT_Done_Glyph( outline );
-        if( shadow )
-            FT_Done_Glyph( shadow );
         return VLC_EGENERIC;
     }
     FT_Glyph_Get_CBox( glyph, ft_glyph_bbox_pixels, p_glyph_bbox );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to