summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2023-01-07 07:40:12 +0100
committerWerner Lemberg <wl@gnu.org>2023-01-07 07:41:31 +0100
commitb1c90733ee6a04882b133101d61b12e352eeb290 (patch)
tree36d03d66580dfcca25894bb4d1d8971b8ef2a4b8
parent3481b154430faea9f6b4002519e60a8ad8ebe8d8 (diff)
downloadfreetype2-b1c90733ee6a04882b133101d61b12e352eeb290.tar.gz
* src/autofit/ft-hb.c (_hb_ft_reference_table): Minor integration fixes.
-rw-r--r--src/autofit/ft-hb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/autofit/ft-hb.c b/src/autofit/ft-hb.c
index b06121ff4..1958f9c36 100644
--- a/src/autofit/ft-hb.c
+++ b/src/autofit/ft-hb.c
@@ -38,6 +38,7 @@
static hb_blob_t *
_hb_ft_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data)
{
+ FT_UNUSED (face);
FT_Face ft_face = (FT_Face) user_data;
FT_Byte *buffer;
FT_ULong length = 0;
@@ -49,7 +50,7 @@ _hb_ft_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data)
if (error)
return NULL;
- buffer = (FT_Byte *) malloc (length);
+ buffer = (FT_Byte *) ft_smalloc (length);
if (!buffer)
return NULL;
@@ -62,7 +63,7 @@ _hb_ft_reference_table (hb_face_t *face, hb_tag_t tag, void *user_data)
return hb_blob_create ((const char *) buffer, length,
HB_MEMORY_MODE_WRITABLE,
- buffer, free);
+ buffer, ft_sfree);
}
static hb_face_t *