fixed memory leaks caused by pool allocator, thanks Dev0

This commit is contained in:
ejcoumans
2007-09-10 19:18:50 +00:00
parent ab33083a9c
commit cfde010808
2 changed files with 7 additions and 4 deletions

View File

@@ -45,6 +45,11 @@ public:
*(void**)p = 0;
}
~btPoolAllocator()
{
delete m_pool;
}
void* allocate(int size)
{
btAssert(!size || size<=m_elemSize);