Mercurial > mplayer.hg
changeset 19545:8f46b547db39
Simplify ass_glyph_cache_reset().
author | eugeni |
---|---|
date | Sat, 26 Aug 2006 20:09:54 +0000 |
parents | 32cfda1ff555 |
children | e32250c3db9a |
files | libass/ass_cache.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_cache.c Sat Aug 26 20:06:06 2006 +0000 +++ b/libass/ass_cache.c Sat Aug 26 20:09:54 2006 +0000 @@ -190,7 +190,7 @@ glyph_hash_size = 0; } -void ass_glyph_cache_reset(void) +void ass_glyph_cache_done(void) { int i; for (i = 0; i < GLYPH_HASH_SIZE; ++i) { @@ -203,12 +203,13 @@ item = next; } } + free(glyph_hash_root); glyph_hash_size = 0; } -void ass_glyph_cache_done(void) +void ass_glyph_cache_reset(void) { - ass_glyph_cache_reset(); - free(glyph_hash_root); + ass_glyph_cache_done(); + ass_glyph_cache_init(); }