From 916629d1827bbf450d41f06639af27a708634713 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 2 Jun 2023 16:08:49 -0600 Subject: [PATCH] [subset/hmtx] Don't clear allocation --- src/hb-ot-hmtx-table.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-hmtx-table.hh b/src/hb-ot-hmtx-table.hh index 3686d176c..7ef40fb16 100644 --- a/src/hb-ot-hmtx-table.hh +++ b/src/hb-ot-hmtx-table.hh @@ -162,8 +162,8 @@ struct hmtxvmtx unsigned total_num_metrics) { unsigned idx = 0; - LongMetric* long_metrics = c->allocate_size (num_long_metrics * LongMetric::static_size); - FWORD* short_metrics = c->allocate_size ((total_num_metrics - num_long_metrics) * FWORD::static_size); + LongMetric* long_metrics = c->allocate_size (num_long_metrics * LongMetric::static_size, false); + FWORD* short_metrics = c->allocate_size ((total_num_metrics - num_long_metrics) * FWORD::static_size, false); if (!long_metrics || !short_metrics) return; for (auto _ : it) {