summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache.c
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-26 20:09:54 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-26 20:09:54 +0000
commitc943ffda49b0b6f4c5889b27c7ac174fe0893b56 (patch)
tree42dde7fc4669332607a2d660c5a4fa728dee8046 /libass/ass_cache.c
parent0a188fde552c8fe724466953e0e85295fb17bf14 (diff)
downloadlibass-c943ffda49b0b6f4c5889b27c7ac174fe0893b56.tar.bz2
libass-c943ffda49b0b6f4c5889b27c7ac174fe0893b56.tar.xz
Simplify ass_glyph_cache_reset().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19551 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_cache.c')
-rw-r--r--libass/ass_cache.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libass/ass_cache.c b/libass/ass_cache.c
index 8409e2d..64f915b 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_reset(void)
+void ass_glyph_cache_done(void)
{
int i;
for (i = 0; i < GLYPH_HASH_SIZE; ++i) {
@@ -203,12 +203,13 @@ void ass_glyph_cache_reset(void)
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();
}