[MPlayer-cvslog] r23208 - trunk/libass/ass_render.c
eugeni
subversion at mplayerhq.hu
Wed May 2 12:15:12 CEST 2007
Author: eugeni
Date: Wed May 2 12:15:12 2007
New Revision: 23208
Log:
Always deallocate glyphs. Fixes memory leak.
Modified:
trunk/libass/ass_render.c
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Wed May 2 12:15:12 2007
@@ -1307,12 +1307,12 @@ static void get_bitmap_glyph(glyph_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);
}
/**
More information about the MPlayer-cvslog
mailing list