sourcehook/sh_tinyhash.h
changeset 150 22fbddfa0209
parent 117 e322da4af2d2
child 151 1667580b0c91
     1.1 --- a/sourcehook/sh_tinyhash.h	Sat Oct 22 05:22:22 2005 +0000
     1.2 +++ b/sourcehook/sh_tinyhash.h	Tue Dec 06 03:13:50 2005 +0000
     1.3 @@ -86,10 +86,18 @@
     1.4  	private:
     1.5  		void _Clear()
     1.6  		{
     1.7 +			typename List<THashNode *>::iterator iter, end;
     1.8  			for (size_t i=0; i<m_numBuckets; i++)
     1.9  			{
    1.10  				if (m_Buckets[i])
    1.11  				{
    1.12 +					end = m_Buckets[i]->end();
    1.13 +					iter = m_Buckets[i]->begin();
    1.14 +					while (iter != end)
    1.15 +					{
    1.16 +						delete (*iter);
    1.17 +						iter++;
    1.18 +					}
    1.19  					delete m_Buckets[i];
    1.20  					m_Buckets[i] = NULL;
    1.21  				}