Add hb_vector_t::fini_deep ()

pull/1228/head
Behdad Esfahbod 6 years ago
parent 4831e615d1
commit 5469d80707
  1. 8
      src/hb-vector.hh

@ -227,6 +227,14 @@ struct hb_vector_t
return false; return false;
} }
inline void fini_deep (void)
{
unsigned int count = len;
for (unsigned int i = 0; i < count; i++)
arrayZ[i].fini ();
fini ();
}
inline void fini (void) inline void fini (void)
{ {
if (arrayZ != static_array) if (arrayZ != static_array)

Loading…
Cancel
Save