From 7b48aa37a77dd86e9099a50de75bfda0de7bb9d3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 13 Mar 2025 00:41:13 -0600 Subject: [PATCH] [aat] Reduce mallocs Untested. --- src/hb-aat-map.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hb-aat-map.cc b/src/hb-aat-map.cc index 1a0dee022..0b85c901e 100644 --- a/src/hb-aat-map.cc +++ b/src/hb-aat-map.cc @@ -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_events;