diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 9536ab63d..9e31ff332 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -578,7 +578,7 @@ struct hb_vector_t void clear () { if (!resize (0)) - length = 0; /* If resize fails (e.g. vector in error state), still clear length. */ + shrink_vector (0); /* If resize fails (e.g. vector in error state), still destruct items and clear length. */ } template