shithub: freetype+ttf2subf

Download patch

ref: 94e3bfafa010384f652ed5ebf2e25a6fde247c1f
parent: 8ec9dfd99185fce2b397bce7cfae2106f8ba0295
author: David Turner <[email protected]>
date: Tue Nov 7 19:15:58 EST 2000

fixed a small bug in the abstract chunk cache class

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/cache/ftcchunk.c
+++ b/src/cache/ftcchunk.c
@@ -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 )