summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-02 10:15:12 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-05-02 10:15:12 +0000
commit9cda6a4834fc080ab538e01e1ee24c2b9ac4ae5c (patch)
tree1f5986e2324defff53a286aa80aa0fd26e055521 /libass
parente6daddc0ade0f27708d7686d7af4a3aa3e2629c0 (diff)
downloadmpv-9cda6a4834fc080ab538e01e1ee24c2b9ac4ae5c.tar.bz2
mpv-9cda6a4834fc080ab538e01e1ee24c2b9ac4ae5c.tar.xz
Always deallocate glyphs. Fixes memory leak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23208 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c10
1 files changed, 5 insertions, 5 deletions
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);
}
/**