Simplify ass_glyph_cache_reset().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19551 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-08-26 20:09:54 +00:00
parent 8bc66b700c
commit f5e2fac77b
1 changed files with 5 additions and 4 deletions

View File

@ -190,7 +190,7 @@ void ass_glyph_cache_init(void)
glyph_hash_size = 0; glyph_hash_size = 0;
} }
void ass_glyph_cache_reset(void) void ass_glyph_cache_done(void)
{ {
int i; int i;
for (i = 0; i < GLYPH_HASH_SIZE; ++i) { for (i = 0; i < GLYPH_HASH_SIZE; ++i) {
@ -203,12 +203,13 @@ void ass_glyph_cache_reset(void)
item = next; item = next;
} }
} }
free(glyph_hash_root);
glyph_hash_size = 0; glyph_hash_size = 0;
} }
void ass_glyph_cache_done(void) void ass_glyph_cache_reset(void)
{ {
ass_glyph_cache_reset(); ass_glyph_cache_done();
free(glyph_hash_root); ass_glyph_cache_init();
} }