summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-21 11:02:49 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-21 11:02:49 +0000
commit2d49463a2b1f01394b21bde21e8bad066bffbdc3 (patch)
tree8b79f0a867b32370a3040dc98b02882c66e6337f /libass/ass_render.c
parentd489827db29c2da671c560bcb07e6082687fe7ce (diff)
downloadlibass-2d49463a2b1f01394b21bde21e8bad066bffbdc3.tar.bz2
libass-2d49463a2b1f01394b21bde21e8bad066bffbdc3.tar.xz
Deallocate glyphs in a separate loop.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23054 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 75bb0d5a..567e5583 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)