Fixed a bug where the GameConfig file cache was not cleared once a file was fully closed

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40977
This commit is contained in:
David Anderson 2007-06-17 18:26:34 +00:00
parent 68d2f741cf
commit c5898044c1
2 changed files with 2 additions and 0 deletions

View File

@ -564,6 +564,7 @@ void GameConfigManager::CloseGameConfigFile(IGameConfig *cfg)
if (pConfig->DecRefCount() == 0)
{
sm_trie_delete(m_pLookup, pConfig->m_pFile);
delete pConfig;
}
}

View File

@ -31,6 +31,7 @@ class CGameConfig :
public ITextListener_SMC,
public IGameConfig
{
friend class GameConfigManager;
public:
CGameConfig(const char *file);
~CGameConfig();