|
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
|
[Prev in Thread] | Current Thread | [Next in Thread] |