mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-01 02:15:54 -04:00
and fix a ton more minor performance issues
This commit is contained in:
+2
-4
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user