From 9cda6a4834fc080ab538e01e1ee24c2b9ac4ae5c Mon Sep 17 00:00:00 2001 From: eugeni Date: Wed, 2 May 2007 10:15:12 +0000 Subject: Always deallocate glyphs. Fixes memory leak. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23208 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libass') diff --git a/libass/ass_render.c b/libass/ass_render.c index 7a118e02b1..820dfd9cad 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1307,12 +1307,12 @@ static void get_bitmap_glyph(glyph_info_t* info) hash_val.bm_s = info->bm_s; cache_add_bitmap(&(info->hash_key), &hash_val); } - // deallocate glyphs - if (info->glyph) - FT_Done_Glyph(info->glyph); - if (info->outline_glyph) - FT_Done_Glyph(info->outline_glyph); } + // deallocate glyphs + if (info->glyph) + FT_Done_Glyph(info->glyph); + if (info->outline_glyph) + FT_Done_Glyph(info->outline_glyph); } /** -- cgit v1.2.3