Fixed IHandleSys::RemoveType() not removing the type name from the name cache (bug 2753).

This commit is contained in:
David Anderson 2008-09-15 04:26:58 -05:00
parent fb2f0795c5
commit ef62e3d665

View File

@ -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;
}