diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 0eb8e2d75..f6915209c 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -392,8 +392,8 @@ struct hb_vector_t : std::conditional, hb_empty { if (unlikely (i >= length)) return; - arrayZ[i].~Type (); shift_down_vector (i + 1); + arrayZ[length - 1].~Type (); length--; }