fixed a small bug in the abstract chunk cache class
This commit is contained in:
parent
8ec9dfd991
commit
94e3bfafa0
17
src/cache/ftcchunk.c
vendored
17
src/cache/ftcchunk.c
vendored
@ -183,16 +183,19 @@
|
||||
FT_ListNode lrunode;
|
||||
|
||||
|
||||
lrunode = FTC_CHUNKNODE_TO_LRUNODE( node );
|
||||
if (node)
|
||||
{
|
||||
lrunode = FTC_CHUNKNODE_TO_LRUNODE( node );
|
||||
|
||||
manager->num_bytes -= clazz->size_node( node );
|
||||
manager->num_nodes--;
|
||||
manager->num_bytes -= clazz->size_node( node );
|
||||
manager->num_nodes--;
|
||||
|
||||
FT_List_Remove( glyphs_lru, lrunode );
|
||||
FT_List_Remove( glyphs_lru, lrunode );
|
||||
|
||||
clazz->destroy_node( node );
|
||||
|
||||
clazz->destroy_node( node );
|
||||
|
||||
bucket[0] = 0;
|
||||
bucket[0] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if ( clazz->done )
|
||||
|
Loading…
Reference in New Issue
Block a user