mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
reversion for a4c09d1680
To be honest, can't remember how I was intending to fix that, but this one's causing it to fail to profile twice in a row, so kill it with fire.
This commit is contained in:
parent
70c7a67456
commit
27112c468a
1 changed files with 3 additions and 5 deletions
|
|
@ -214,12 +214,10 @@ Profiler::~Profiler()
|
|||
void Profiler::reset()
|
||||
{
|
||||
mEnabled = false; // in case we're in a profiler call.
|
||||
ProfilerData * head = mProfileList;
|
||||
ProfilerData * curr = NULL;
|
||||
while ((curr = head) != NULL)
|
||||
while (mProfileList)
|
||||
{
|
||||
head = head->mNextProfilerData;
|
||||
free(curr);
|
||||
free(mProfileList);
|
||||
mProfileList = NULL;
|
||||
}
|
||||
|
||||
for(ProfilerRootData *walk = ProfilerRootData::sRootList; walk; walk = walk->mNextRoot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue