Mercurial > mplayer.hg
comparison libass/ass_render.c @ 23190:631dad12568b
Always deallocate glyphs. Fixes memory leak.
author | eugeni |
---|---|
date | Wed, 02 May 2007 10:15:12 +0000 |
parents | eaed63bb5078 |
children | 5ea241439d5a |
comparison
equal
deleted
inserted
replaced
23189:9eeca842d5b1 | 23190:631dad12568b |
---|---|
1305 hash_val.bm_o = info->bm_o; | 1305 hash_val.bm_o = info->bm_o; |
1306 hash_val.bm = info->bm; | 1306 hash_val.bm = info->bm; |
1307 hash_val.bm_s = info->bm_s; | 1307 hash_val.bm_s = info->bm_s; |
1308 cache_add_bitmap(&(info->hash_key), &hash_val); | 1308 cache_add_bitmap(&(info->hash_key), &hash_val); |
1309 } | 1309 } |
1310 // deallocate glyphs | 1310 } |
1311 if (info->glyph) | 1311 // deallocate glyphs |
1312 FT_Done_Glyph(info->glyph); | 1312 if (info->glyph) |
1313 if (info->outline_glyph) | 1313 FT_Done_Glyph(info->glyph); |
1314 FT_Done_Glyph(info->outline_glyph); | 1314 if (info->outline_glyph) |
1315 } | 1315 FT_Done_Glyph(info->outline_glyph); |
1316 } | 1316 } |
1317 | 1317 |
1318 /** | 1318 /** |
1319 * This function goes through text_info and calculates text parameters. | 1319 * This function goes through text_info and calculates text parameters. |
1320 * The following text_info fields are filled: | 1320 * The following text_info fields are filled: |