mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[serialize] Don't free object-pool in reset()
This commit is contained in:
1 parent
02949cf64f
commit
afd716d4cd
2 files changed
+3
-7
No files matched your search
+3
-6
@@ -35,15 +35,12 @@ template <typename T, unsigned ChunkLen = 16>
|
||||
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 ()
|
||||
|
||||
@@ -194,7 +194,6 @@ struct hb_serialize_context_t
|
||||
current = current->next;
|
||||
_->fini ();
|
||||
}
|
||||
object_pool.fini ();
|
||||
}
|
||||
|
||||
bool in_error () const { return bool (errors); }
|
||||
|
||||
Reference in new issue
Block a user