shithub: freetype+ttf2subf

Download patch

ref: a7b199d081e73aad69f97e71ba46b289bfa1692a
parent: 0a6f0f8fed1e24a7b5f76bd281eac4ce00f3897f
author: Alexei Podtelezhnikov <[email protected]>
date: Thu Sep 2 18:58:50 EDT 2021

* src/cache/ftcmanag.c (FTC_Manager_New): Avoid some zeroing.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -357,7 +357,7 @@
   {
     FT_Error     error;
     FT_Memory    memory;
-    FTC_Manager  manager = 0;
+    FTC_Manager  manager;
 
 
     if ( !library )
@@ -368,7 +368,7 @@
 
     memory = library->memory;
 
-    if ( FT_NEW( manager ) )
+    if ( FT_QNEW( manager ) )
       goto Exit;
 
     if ( max_faces == 0 )
@@ -398,6 +398,9 @@
                       max_sizes,
                       manager,
                       memory );
+
+    manager->num_nodes  = 0;
+    manager->num_caches = 0;
 
     *amanager = manager;