# HG changeset patch # User eugeni # Date 1178100912 0 # Node ID 631dad12568bf849335d01154e5d0443582eea14 # Parent 9eeca842d5b18341604c3e753bcd6996267554ec Always deallocate glyphs. Fixes memory leak. diff -r 9eeca842d5b1 -r 631dad12568b libass/ass_render.c --- a/libass/ass_render.c Wed May 02 07:02:16 2007 +0000 +++ b/libass/ass_render.c Wed May 02 10:15:12 2007 +0000 @@ -1307,12 +1307,12 @@ 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); } /**