Commit 2224fa03 authored by Erwan Tulou's avatar Erwan Tulou

freetype: fix crash (wrong memory deallocation)

shadow refers to outine or glyph. Only these latter ones need deallocation.
parent 3ae6eda8
...@@ -1776,8 +1776,6 @@ static int GetGlyph( filter_t *p_filter, ...@@ -1776,8 +1776,6 @@ static int GetGlyph( filter_t *p_filter,
FT_Done_Glyph( glyph ); FT_Done_Glyph( glyph );
if( outline ) if( outline )
FT_Done_Glyph( outline ); FT_Done_Glyph( outline );
if( shadow )
FT_Done_Glyph( shadow );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
FT_Glyph_Get_CBox( glyph, ft_glyph_bbox_pixels, p_glyph_bbox ); FT_Glyph_Get_CBox( glyph, ft_glyph_bbox_pixels, p_glyph_bbox );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment