diff --git a/src/hb-pool.hh b/src/hb-pool.hh index dcf8f6627..a238d6404 100644 --- a/src/hb-pool.hh +++ b/src/hb-pool.hh @@ -35,15 +35,12 @@ template struct hb_pool_t { hb_pool_t () : next (nullptr) {} - ~hb_pool_t () { fini (); } - - void fini () + ~hb_pool_t () { next = nullptr; - for (chunk_t *_ : chunks) hb_free (_); - - chunks.fini (); + for (chunk_t *_ : chunks) + hb_free (_); } T* alloc () diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index f47cde5eb..3c26bf402 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -194,7 +194,6 @@ struct hb_serialize_context_t current = current->next; _->fini (); } - object_pool.fini (); } bool in_error () const { return bool (errors); }