no, scoping in here (what the heck did I just commit to editmenu? stupid gui)

This commit is contained in:
Glenn Maynard
2002-08-23 08:41:06 +00:00
parent 36ebdf3646
commit 6121298ddf
+3 -2
View File
@@ -39,11 +39,12 @@ RageTextureManager::~RageTextureManager()
{
// delete all textures
POSITION pos = m_mapPathToTexture.GetStartPosition();
CString sPath;
RageTexture* pTexture;
while( pos != NULL ) // iterate over all k/v pairs in map
{
RageTexture* pTexture;
CString sPath;
m_mapPathToTexture.GetNextAssoc( pos, sPath, pTexture );
LOG->Trace( "TEXTUREMAN LEAK: '%s', RefCount = %d.", sPath, pTexture->m_iRefCount );
SAFE_DELETE( pTexture );