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:
		
							parent
							
								
									68d2f741cf
								
							
						
					
					
						commit
						c5898044c1
					
				@ -564,6 +564,7 @@ void GameConfigManager::CloseGameConfigFile(IGameConfig *cfg)
 | 
			
		||||
 | 
			
		||||
	if (pConfig->DecRefCount() == 0)
 | 
			
		||||
	{
 | 
			
		||||
		sm_trie_delete(m_pLookup, pConfig->m_pFile);
 | 
			
		||||
		delete pConfig;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -31,6 +31,7 @@ class CGameConfig :
 | 
			
		||||
	public ITextListener_SMC,
 | 
			
		||||
	public IGameConfig
 | 
			
		||||
{
 | 
			
		||||
	friend class GameConfigManager;
 | 
			
		||||
public:
 | 
			
		||||
	CGameConfig(const char *file);
 | 
			
		||||
	~CGameConfig();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user