shithub: freetype+ttf2subf

Download patch

ref: 2ba871b289749131301b1b27e1b5eb3142cabc43
parent: 3f6e0e0c6b75c76def1cffe2967a1f5ace392007
author: Werner Lemberg <[email protected]>
date: Sun Jun 9 04:20:54 EDT 2013

* src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush.

This code, present since eight(!) years in the unused `CACHE'
branch, has been forgotten to apply to the master branch.  It's
really amazing that noone has ever complained since
`FTC_Manager_Reset' is pretty useless without flushing the cache.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-06-09  David Turner  <[email protected]>
+
+	* src/cache/ftcmanag.c (FTC_Manager_Reset): Add missing cache flush.
+
+	This code, present since eight(!) years in the unused `CACHE'
+	branch, has been forgotten to apply to the master branch.  It's
+	really amazing that noone has ever complained since
+	`FTC_Manager_Reset' is pretty useless without flushing the cache.
+
 2013-06-07  Werner Lemberg  <[email protected]>
 
 	Add and improve pragmas for MSVC compiler.
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -456,7 +456,8 @@
       FTC_MruList_Reset( &manager->sizes );
       FTC_MruList_Reset( &manager->faces );
     }
-    /* XXX: FIXME: flush the caches? */
+
+    FTC_Manager_FlushN( manager, manager->num_nodes );
   }