From 8b4274d71f055c9c1354413933c4ba071bfac288 Mon Sep 17 00:00:00 2001 From: eugeni Date: Sat, 26 Aug 2006 19:00:21 +0000 Subject: Reset glyph cache on reconfigure. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19545 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_cache.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libass/ass_cache.c') diff --git a/libass/ass_cache.c b/libass/ass_cache.c index 5d400ed6e7..8409e2d622 100644 --- a/libass/ass_cache.c +++ b/libass/ass_cache.c @@ -190,7 +190,7 @@ void ass_glyph_cache_init(void) glyph_hash_size = 0; } -void ass_glyph_cache_done(void) +void ass_glyph_cache_reset(void) { int i; for (i = 0; i < GLYPH_HASH_SIZE; ++i) { @@ -203,7 +203,12 @@ void ass_glyph_cache_done(void) item = next; } } - free(glyph_hash_root); glyph_hash_size = 0; } +void ass_glyph_cache_done(void) +{ + ass_glyph_cache_reset(); + free(glyph_hash_root); +} + -- cgit v1.2.3