From c5898044c1e9513d1868d88171604220729c1663 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 17 Jun 2007 18:26:34 +0000 Subject: [PATCH] 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 --- core/GameConfigs.cpp | 1 + core/GameConfigs.h | 1 + 2 files changed, 2 insertions(+) diff --git a/core/GameConfigs.cpp b/core/GameConfigs.cpp index af424f7d..c40cc7aa 100644 --- a/core/GameConfigs.cpp +++ b/core/GameConfigs.cpp @@ -564,6 +564,7 @@ void GameConfigManager::CloseGameConfigFile(IGameConfig *cfg) if (pConfig->DecRefCount() == 0) { + sm_trie_delete(m_pLookup, pConfig->m_pFile); delete pConfig; } } diff --git a/core/GameConfigs.h b/core/GameConfigs.h index 78621d0e..ba267166 100644 --- a/core/GameConfigs.h +++ b/core/GameConfigs.h @@ -31,6 +31,7 @@ class CGameConfig : public ITextListener_SMC, public IGameConfig { + friend class GameConfigManager; public: CGameConfig(const char *file); ~CGameConfig();