]> git.sesse.net Git - vlc/commitdiff
freetype: fix crash (wrong memory deallocation)
authorErwan Tulou <erwan10@videolan.org>
Fri, 9 Sep 2011 22:25:55 +0000 (00:25 +0200)
committerErwan Tulou <erwan10@videolan.org>
Mon, 12 Sep 2011 09:23:50 +0000 (11:23 +0200)
shadow refers to outine or glyph. Only these latter ones need deallocation.

modules/text_renderer/freetype.c

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