summaryrefslogtreecommitdiff
path: root/thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-20 10:02:53 +0200
committerGitHub <noreply@github.com>2021-09-20 10:02:53 +0200
commit2f6abc1002bbb82ba0f4285076e880e20fad4388 (patch)
tree9eba4712d3e85919dc9dc5756dd6ef172b27a587 /thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc
parent89417ba75b59f26147218af8d08fced7152a80fa (diff)
parent3061e3859d603c56b322a6490ebe82db40475d83 (diff)
Merge pull request #52859 from bruvzg/hb300
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc')
-rw-r--r--thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc b/thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc
index dddba142a3..7787886857 100644
--- a/thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc
+++ b/thirdparty/harfbuzz/src/hb-ot-shape-complex-khmer.cc
@@ -42,7 +42,8 @@ khmer_features[] =
{
/*
* Basic features.
- * These features are applied in order, one at a time, after reordering.
+ * These features are applied all at once, before reordering, constrained
+ * to the syllable.
*/
{HB_TAG('p','r','e','f'), F_MANUAL_JOINERS},
{HB_TAG('b','l','w','f'), F_MANUAL_JOINERS},
@@ -147,7 +148,7 @@ struct khmer_shape_plan_t
static void *
data_create_khmer (const hb_ot_shape_plan_t *plan)
{
- khmer_shape_plan_t *khmer_plan = (khmer_shape_plan_t *) calloc (1, sizeof (khmer_shape_plan_t));
+ khmer_shape_plan_t *khmer_plan = (khmer_shape_plan_t *) hb_calloc (1, sizeof (khmer_shape_plan_t));
if (unlikely (!khmer_plan))
return nullptr;
@@ -161,7 +162,7 @@ data_create_khmer (const hb_ot_shape_plan_t *plan)
static void
data_destroy_khmer (void *data)
{
- free (data);
+ hb_free (data);
}
static void