(svn r25887) -Fix: Ignore NULL pointers in delete operator of PoolItem.

This commit is contained in:
fonsinchen 2013-10-20 13:35:35 +00:00
parent a840efe7a0
commit e21ae34878
1 changed files with 1 additions and 0 deletions

View File

@ -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);