diff libass/ass_cache.c @ 19539:64009ae411fb

Reset glyph cache on reconfigure.
author eugeni
date Sat, 26 Aug 2006 19:00:21 +0000
parents 9e95ac641e77
children 8f46b547db39
line wrap: on
line diff
--- a/libass/ass_cache.c	Sat Aug 26 18:24:37 2006 +0000
+++ b/libass/ass_cache.c	Sat Aug 26 19:00:21 2006 +0000
@@ -190,7 +190,7 @@
 	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 @@
 			item = next;
 		}
 	}
-	free(glyph_hash_root);
 	glyph_hash_size = 0;
 }
 
+void ass_glyph_cache_done(void)
+{
+	ass_glyph_cache_reset();
+	free(glyph_hash_root);
+}
+