# HG changeset patch # User eugeni # Date 1156622994 0 # Node ID 8f46b547db3948a030eb9e25d7051ffa871b596e # Parent 32cfda1ff555322fbcee3a67e73c752d0ac44801 Simplify ass_glyph_cache_reset(). diff -r 32cfda1ff555 -r 8f46b547db39 libass/ass_cache.c --- 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(); }