From d0e2ad9297053635b65d0ad4c97c49f14f0cccee Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 28 Jun 2022 21:19:15 -0600 Subject: [PATCH] [avar] Pre-alloc vector --- src/hb-ot-var-avar-table.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-var-avar-table.hh b/src/hb-ot-var-avar-table.hh index fed135287..a76f5ad08 100644 --- a/src/hb-ot-var-avar-table.hh +++ b/src/hb-ot-var-avar-table.hh @@ -188,6 +188,7 @@ struct avar const auto &var_store = this+v2->varStore; hb_vector_t out; + out.alloc (coords_length); for (unsigned i = 0; i < coords_length; i++) { int v = coords[i];