diff --git a/pool.hpp b/pool.hpp index 491b80f2..ddf5fb2a 100644 --- a/pool.hpp +++ b/pool.hpp @@ -88,8 +88,9 @@ class pool : public nocopy { void release (T *data) { + data->~T(); node *newnode = (node *)data; - + newnode->_chain = m_next; m_next = newnode; }