summaryrefslogtreecommitdiff
path: root/src/core/pool_func.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/pool_func.cpp')
-rw-r--r--src/core/pool_func.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/pool_func.cpp b/src/core/pool_func.cpp
index 4c55293eb..7b65b96a4 100644
--- a/src/core/pool_func.cpp
+++ b/src/core/pool_func.cpp
@@ -12,6 +12,10 @@
#include "../stdafx.h"
#include "pool_type.hpp"
+/**
+ * Destructor removes this object from the pool vector and
+ * deletes the vector itself if this was the last item removed.
+ */
PoolBase::~PoolBase()
{
PoolVector *pools = PoolBase::GetPools();
@@ -19,6 +23,9 @@ PoolBase::~PoolBase()
if (pools->Length() == 0) delete pools;
}
+/**
+ * Clean all pools - calls Pool::CleanPool()
+ */
/* static */ void PoolBase::CleanAll()
{
PoolVector *pools = PoolBase::GetPools();