1.1 --- a/core/ConVarManager.cpp Mon Jul 23 18:30:02 2007 +0000
1.2 +++ b/core/ConVarManager.cpp Mon Jul 23 18:56:20 2007 +0000
1.3 @@ -138,12 +138,15 @@
1.4 if (id != g_PLID && !pCommand->IsCommand())
1.5 {
1.6 ConVarInfo *pInfo;
1.7 + const char *cvarName = pCommand->GetName();
1.8 HandleSecurity sec(NULL, g_pCoreIdent);
1.9 - bool handleExists = sm_trie_retrieve(m_ConVarCache, pCommand->GetName(), reinterpret_cast<void **>(&pInfo));
1.10 + bool handleExists = sm_trie_retrieve(m_ConVarCache, cvarName, reinterpret_cast<void **>(&pInfo));
1.11
1.12 if (handleExists)
1.13 {
1.14 g_HandleSys.FreeHandle(pInfo->handle, &sec);
1.15 + sm_trie_delete(m_ConVarCache, cvarName);
1.16 + m_ConVars.remove(pInfo);
1.17 }
1.18 }
1.19 }