From a3f7ed709b8dec880fab338d8db6494c2d7de998 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 3 Jun 2023 20:25:14 -0600 Subject: [PATCH] [subset/hdmx] Don't clear memory unnecessarily --- src/hb-ot-hdmx-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-hdmx-table.hh b/src/hb-ot-hdmx-table.hh index c51e9de75..4d7816eda 100644 --- a/src/hb-ot-hdmx-table.hh +++ b/src/hb-ot-hdmx-table.hh @@ -52,7 +52,7 @@ struct DeviceRecord unsigned length = it.len (); - if (unlikely (!c->extend (this, length))) return_trace (false); + if (unlikely (!c->extend_size (this, get_size (length), false))) return_trace (false); this->pixelSize = pixelSize; this->maxWidth =