]> git.sesse.net Git - vlc/commitdiff
Revert "freetype: fix crash (wrong memory deallocation)"
authorErwan Tulou <erwan10@videolan.org>
Mon, 12 Sep 2011 17:46:59 +0000 (19:46 +0200)
committerErwan Tulou <erwan10@videolan.org>
Mon, 12 Sep 2011 17:55:46 +0000 (19:55 +0200)
This reverts commit 2224fa034a7a205ba9ec810e67e2889a2bca4471.

FT_Done_Glyph seems needed for shadow. More investigation needed to
work out why libfreetype crashes at this FT_Done_Glyph.

modules/text_renderer/freetype.c

index 2a294f5a910e48d264163db663854aa9d9d29c58..10c81508c4ea2092df760b13df519e720a40d312 100644 (file)
@@ -1776,6 +1776,8 @@ 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 );