Run the item destructor when releasing a pool item

This commit is contained in:
Danny Robson 2011-07-01 18:41:50 +10:00
parent b4d6500f5f
commit e748520bdb

View File

@ -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;
}