summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/pool_type.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/pool_type.hpp b/src/core/pool_type.hpp
index c703b7cdc..74ade5790 100644
--- a/src/core/pool_type.hpp
+++ b/src/core/pool_type.hpp
@@ -161,6 +161,7 @@ struct Pool : PoolBase {
*/
inline void operator delete(void *p)
{
+ if (p == NULL) return;
Titem *pn = (Titem *)p;
assert(pn == Tpool->Get(pn->index));
Tpool->FreeItem(pn->index);