Mercurial > mplayer.hg
changeset 23036:980da4e288f3
Deallocate glyphs in a separate loop.
author | eugeni |
---|---|
date | Sat, 21 Apr 2007 11:02:49 +0000 |
parents | e8afcfccf359 |
children | c2c2bc418257 |
files | libass/ass_render.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Sat Apr 21 10:56:28 2007 +0000 +++ b/libass/ass_render.c Sat Apr 21 11:02:49 2007 +0000 @@ -409,6 +409,9 @@ 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)