Deallocate glyphs in a separate loop.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23054 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2007-04-21 11:02:49 +00:00
parent 2b1fb8c4ef
commit 9dbd459f7e
1 changed files with 3 additions and 0 deletions

View File

@ -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)