[aat] Reduce mallocs

Untested.
This commit is contained in:
Behdad Esfahbod committed 2025-03-13 01:07:35 -06:00
1 parent 792b9b9337
commit 7b48aa37a7
1 file changed
+5
+5
View File
@@ -85,6 +85,11 @@ void
hb_aat_map_builder_t::compile (hb_aat_map_t &m)
{
/* Compute active features per range, and compile each. */
if (!features.length)
{
hb_aat_layout_compile_map (this, &m);
return;
}
/* Sort features by start/end events. */
hb_vector_t<feature_event_t> feature_events;