* src/cache/ftlru.c (FT_Lru_Lookup_Node): fixed a bug that prevented
correct LRU behaviour
This commit is contained in:
parent
c4f622c341
commit
5b1e81411d
@ -1,3 +1,8 @@
|
||||
2001-10-07 Richard Barber <rich@solutionuk.com>
|
||||
|
||||
* src/cache/ftlru.c (FT_Lru_Lookup_Node): fixed a bug that prevented
|
||||
correct LRU behaviour
|
||||
|
||||
2001-10-07 David Turner <david@freetype.org>
|
||||
|
||||
* src/smooth/ftgrays: "setjmp/longjmp" is now used for rollback (i.e.
|
||||
|
7
src/cache/ftlru.c
vendored
7
src/cache/ftlru.c
vendored
@ -177,7 +177,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ( !found )
|
||||
if ( found )
|
||||
{
|
||||
/* move element to top of list */
|
||||
FT_List_Up( &lru->elements, node );
|
||||
}
|
||||
else
|
||||
{
|
||||
/* we haven't found the relevant element. We will now try */
|
||||
/* to create a new one. */
|
||||
|
Loading…
Reference in New Issue
Block a user