From f9cd59ae4142f43d82bebdd09783bda912df2e42 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Sep 2025 01:45:36 -0600 Subject: [PATCH] [tuplevar] More use of pool --- src/hb-ot-var-common.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index 0cc75e21a..b30b2d8c9 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh @@ -422,7 +422,12 @@ struct tuple_delta_t { if (!compiled_interm_coords) { - if (unlikely (!compiled_interm_coords.resize (2 * cur_axis_count))) + if (pool) + { + if (unlikely (!compiled_interm_coords.allocate_from_pool (pool, 2 * cur_axis_count))) + return false; + } + else if (unlikely (!compiled_interm_coords.resize (2 * cur_axis_count))) return false; start_coords = compiled_interm_coords.as_array ().sub_array (0, cur_axis_count); end_coords = compiled_interm_coords.as_array ().sub_array (cur_axis_count);