Fix typos in memory macros

System Internals / FreeType - Ben Wagner [chromium.org] - 16 October 2021 02:18 UTC

FT_QNEW_ARRAY and FT_QRENEW_ARRAY were using the non-Q FT_MEM_NEW_ARRAY and FT_MEM_RENEW_ARRAY. Change these to use the Q
versions. Also fix the one issue discovered in tt_face_load_name where table->names is created with FT_QNEW_ARRAY but the extra string member is not initialized to NULL.

- include/freetype/internal/ftmemory.h (FT_Q(RE)NEW_ARRAY): Use FT_MEM_Q(RE)NEW_ARRAY as needed.

- src/sfnt/ttload.c (tt_face_load_name): Initialize `entry->string`.

c71eb22dd Fix typos in memory macros.
include/freetype/internal/ftmemory.h | 11 +++++------
src/sfnt/ttload.c | 3 +++
2 files changed, 8 insertions(+), 6 deletions(-)

Upstream: git.savannah.gnu.org


  • Share