diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index b360e659a..b98119f54 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -62,8 +62,13 @@ struct code_pair }; typedef hb_vector_t StrBuff; -struct StrBuffArray : hb_vector_t +struct StrBuffArray : hb_vector_t { + inline void fini (void) + { + SUPER::fini_deep (); + } + inline unsigned int total_size (void) const { unsigned int size = 0; @@ -71,6 +76,9 @@ struct StrBuffArray : hb_vector_t size += (*this)[i].len; return size; } + + private: + typedef hb_vector_t SUPER; }; /* CFF INDEX */ diff --git a/src/hb-subset-cff-common.hh b/src/hb-subset-cff-common.hh index 91fa5ed74..8631d2b8d 100644 --- a/src/hb-subset-cff-common.hh +++ b/src/hb-subset-cff-common.hh @@ -465,11 +465,19 @@ struct ParsedCStrs : hb_vector_t { inline void init (unsigned int len_ = 0) { - hb_vector_t::init (); + SUPER::init (); resize (len_); for (unsigned int i = 0; i < len; i++) (*this)[i].init (); } + + inline void fini (void) + { + SUPER::fini_deep (); + } + + private: + typedef hb_vector_t SUPER; }; struct SubrSubsetParam