and fix a ton more minor performance issues

This commit is contained in:
DarthArgus
2014-10-27 22:39:57 -07:00
parent 14eaf713d0
commit c9c39d5713
97 changed files with 266 additions and 376 deletions
@@ -69,8 +69,7 @@ void CharDataMap::initSingleton ()
void CharDataMap::explicitDestroy ()
{
if (ms_singleton)
delete ms_singleton;
delete ms_singleton;
ms_singleton = 0;
}
@@ -248,8 +247,7 @@ CharDataMap::ErrorCode CharDataMap::generateMapFromBuffer (const Blocks::Mapping
//-- pack all the char data into a contiguous block of memory
//--
if (m_contiguousData)
delete[] m_contiguousData;
delete[] m_contiguousData;
m_contiguousData = new CharData [validChars];