freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] [PATCH] fix issue with mem debug


From: Carey, Jeff
Subject: [ft-devel] [PATCH] fix issue with mem debug
Date: Mon, 2 Jul 2018 17:42:15 +0000

Hi Werner et al,

 

I ran across an issue with mem debug enabled.  Here’s a patch with the simple fix.

 

Cheers,

 

-jeff

 

---

src/psnames/psmodule.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/src/psnames/psmodule.c b/src/psnames/psmodule.c

index 97dcfb6..855c8ce 100644

--- a/src/psnames/psmodule.c

+++ b/src/psnames/psmodule.c

@@ -392,7 +392,7 @@

         /* Reallocate if the number of used entries is much smaller. */

         if ( count < num_glyphs / 2 )

         {

-          (void)FT_RENEW_ARRAY( table->maps, num_glyphs, count );

+          (void)FT_RENEW_ARRAY( table->maps, num_glyphs + EXTRA_GLYPH_LIST_SIZE, count );

           error = FT_Err_Ok;

         }

--

2.7.4

 

 
Jeff Carey
Principal Software Engineer
 
Monotype
600 Unicorn Park Drive 3rd Floor
WoburnMassachusetts 
01801
 
 
 
Phone +1 (781) 970 6073
 
Our Brand Family

Monotype.com
Olapic.com
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]