mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
[tuplevar] More use of pool
This commit is contained in:
1 parent
12ce710f5c
commit
f9cd59ae41
1 file changed
+6
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user