Skip to content

FT_QNEW_ARRAY to use FT_MEM_QNEW_ARRAY

Ben Wagner requested to merge bungeman/freetype:FT_QNEW into master

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_QNEW_ARRAY, FT_QRENEW_ARRAY): Use FT_MEM_QNEW_ARRAY or FT_MEM_QRENEW_ARRAY as needed.

  • src/sfnt/ttload.c (tt_face_load_name): init entry->string.

Merge request reports