Commit 2ba871b289749131301b1b27e1b5eb3142cabc43

Werner Lemberg 2013-06-09T08:20:54

* 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.

diff --git a/ChangeLog b/ChangeLog
index 2472cfd..d85fde8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-06-09  David Turner  <digit@google.com>
+
+	* 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  <wl@gnu.org>
 
 	Add and improve pragmas for MSVC compiler.
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index d8c441f..4eb2c5b 100644
--- 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 );
   }