summaryrefslogtreecommitdiff
path: root/BlockFactory.h
diff options
context:
space:
mode:
authorCaldfir2012-05-26 14:09:40 -0700
committerCaldfir2012-05-26 14:09:40 -0700
commitf297adab478e2bf248b9f12091944ba47df4f2f2 (patch)
tree72635053b1c4ee480cc241f49aec9a5809ccdb5a /BlockFactory.h
parentc884d22b764b1c7dc090a5bf3be120bb9e65eceb (diff)
downloadstonesense-f297adab478e2bf248b9f12091944ba47df4f2f2.tar.gz
stonesense-f297adab478e2bf248b9f12091944ba47df4f2f2.tar.bz2
stonesense-f297adab478e2bf248b9f12091944ba47df4f2f2.tar.xz
Removed a memory leak associated with blocks that were being permanently cached.
Diffstat (limited to 'BlockFactory.h')
-rw-r--r--BlockFactory.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/BlockFactory.h b/BlockFactory.h
index a122dd6..a8d2046 100644
--- a/BlockFactory.h
+++ b/BlockFactory.h
@@ -5,6 +5,7 @@
class BlockFactory
{
uint32_t poolSize;
+ uint32_t blocksCreated;
vector<Block*> pool;
public:
@@ -13,6 +14,7 @@ public:
Block* allocateBlock( );
void deleteBlock( Block* );
uint32_t getPoolSize(){ return poolSize; }
+ uint32_t getBlocksCreated(){ return blocksCreated; }
};