diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 99b33c001..29d258aa5 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -648,7 +648,7 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan, } else { active_feature_t *feature = active_features.lsearch (event->feature); if (feature) - active_features.remove (feature - active_features.arrayZ); + active_features.remove_ordered (feature - active_features.arrayZ); } } } diff --git a/src/hb-ms-feature-ranges.hh b/src/hb-ms-feature-ranges.hh index d40fdeaa8..46a20c91e 100644 --- a/src/hb-ms-feature-ranges.hh +++ b/src/hb-ms-feature-ranges.hh @@ -166,7 +166,7 @@ hb_ms_setup_features (const hb_feature_t *features, { auto *feature = active_features.lsearch (event->feature); if (feature) - active_features.remove (feature - active_features.arrayZ); + active_features.remove_ordered (feature - active_features.arrayZ); } }