mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/hmtx] Don't clear allocation
This commit is contained in:
parent
24b069cd53
commit
916629d182
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,8 @@ struct hmtxvmtx
|
|||
unsigned total_num_metrics)
|
||||
{
|
||||
unsigned idx = 0;
|
||||
LongMetric* long_metrics = c->allocate_size<LongMetric> (num_long_metrics * LongMetric::static_size);
|
||||
FWORD* short_metrics = c->allocate_size<FWORD> ((total_num_metrics - num_long_metrics) * FWORD::static_size);
|
||||
LongMetric* long_metrics = c->allocate_size<LongMetric> (num_long_metrics * LongMetric::static_size, false);
|
||||
FWORD* short_metrics = c->allocate_size<FWORD> ((total_num_metrics - num_long_metrics) * FWORD::static_size, false);
|
||||
if (!long_metrics || !short_metrics) return;
|
||||
for (auto _ : it)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue