From 9dbd459f7ea43f1418c61e67cf6b6ca61b0dd041 Mon Sep 17 00:00:00 2001 From: eugeni Date: Sat, 21 Apr 2007 11:02:49 +0000 Subject: Deallocate glyphs in a separate loop. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23054 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libass') diff --git a/libass/ass_render.c b/libass/ass_render.c index 75bb0d5ade..567e558317 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -409,6 +409,9 @@ static ass_image_t* render_text(text_info_t* text_info, int dst_x, int dst_y) hash_val.bm_s = text_info->glyphs[i].bm_s; cache_add_bitmap(&(text_info->glyphs[i].hash_key), &hash_val); } + } + + for (i = 0; i < text_info->length; ++i) { if (text_info->glyphs[i].glyph) FT_Done_Glyph(text_info->glyphs[i].glyph); if (text_info->glyphs[i].outline_glyph) -- cgit v1.2.3