From ef62e3d6652773c9e4acf78982337ff608c9d38c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 15 Sep 2008 04:26:58 -0500 Subject: [PATCH] Fixed IHandleSys::RemoveType() not removing the type name from the name cache (bug 2753). --- core/systems/HandleSys.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/systems/HandleSys.cpp b/core/systems/HandleSys.cpp index 71b41fa9..047f07e3 100644 --- a/core/systems/HandleSys.cpp +++ b/core/systems/HandleSys.cpp @@ -910,6 +910,15 @@ bool HandleSystem::RemoveType(HandleType_t type, IdentityToken_t *ident) } } + /* Remove it from the type cache. */ + if (pType->nameIdx != -1) + { + const char *typeName; + + typeName = m_strtab->GetString(pType->nameIdx); + sm_trie_delete(m_TypeLookup, typeName); + } + return true; }