fixed potential memory leak in out-of-memory situations

This commit is contained in:
Guenter Obiltschnig
2016-09-26 17:39:29 +02:00
parent 34b9b1284c
commit 8935e19bbc
2 changed files with 28 additions and 3 deletions

View File

@@ -73,6 +73,8 @@ private:
MemoryPool(const MemoryPool&);
MemoryPool& operator = (const MemoryPool&);
void clear();
enum
{
BLOCK_RESERVE = 128