Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Generals/Code/GameEngine/Source/GameClient/GameClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ GameClient::GameClient()
//-------------------------------------------------------------------------------------------------
GameClient::~GameClient()
{
// clear any drawable TOC we might have - do this FIRST to ensure AsciiStrings
// are destroyed while the memory allocator is still in a valid state
m_drawableTOC.clear();

#ifdef PERF_TIMERS
delete TheGraphDraw;
TheGraphDraw = NULL;
Expand All @@ -125,9 +129,6 @@ GameClient::~GameClient()
delete TheDrawGroupInfo;
TheDrawGroupInfo = NULL;

// clear any drawable TOC we might have
m_drawableTOC.clear();

//DEBUG_LOG(("Preloaded texture files ------------------------------------------"));
//for (Int oog=0; oog<preloadTextureNamesGlobalHack2.size(); ++oog)
//{
Expand Down
7 changes: 4 additions & 3 deletions GeneralsMD/Code/GameEngine/Source/GameClient/GameClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ GameClient::GameClient()
//-------------------------------------------------------------------------------------------------
GameClient::~GameClient()
{
// clear any drawable TOC we might have - do this FIRST to ensure AsciiStrings
// are destroyed while the memory allocator is still in a valid state
m_drawableTOC.clear();

#ifdef PERF_TIMERS
delete TheGraphDraw;
TheGraphDraw = NULL;
Expand All @@ -137,9 +141,6 @@ GameClient::~GameClient()
delete TheDrawGroupInfo;
TheDrawGroupInfo = NULL;

// clear any drawable TOC we might have
m_drawableTOC.clear();

//DEBUG_LOG(("Preloaded texture files ------------------------------------------"));
//for (Int oog=0; oog<preloadTextureNamesGlobalHack2.size(); ++oog)
//{
Expand Down
Loading