diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-02 10:15:12 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-02 10:15:12 +0000 |
commit | adcfa955d8d8468b5372dd02355349a0cb3ac169 (patch) | |
tree | 729548ca64b7adfdce9c49f79331799b664bb71e | |
parent | 115dee0e6ff3098727ffb80de8fa05790564179d (diff) | |
download | libass-adcfa955d8d8468b5372dd02355349a0cb3ac169.tar.bz2 libass-adcfa955d8d8468b5372dd02355349a0cb3ac169.tar.xz |
Always deallocate glyphs. Fixes memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23208 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libass/ass_render.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 7a118e02..820dfd9c 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); } /** |