diff --git a/src/hb-vector-svg-subset.cc b/src/hb-vector-svg-subset.cc index d0b35c60c..3cc06a916 100644 --- a/src/hb-vector-svg-subset.cc +++ b/src/hb-vector-svg-subset.cc @@ -178,7 +178,8 @@ hb_svg_add_unique_id (hb_vector_t *v, if (unlikely (!seen_ids->set (key, true))) return false; auto *slot = v->push (); - if (!slot) return false; + if (unlikely (v->in_error ())) + return false; *slot = key; return true; }