mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +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()
|
void Profiler::reset()
|
||||||
{
|
{
|
||||||
mEnabled = false; // in case we're in a profiler call.
|
mEnabled = false; // in case we're in a profiler call.
|
||||||
ProfilerData * head = mProfileList;
|
while (mProfileList)
|
||||||
ProfilerData * curr = NULL;
|
|
||||||
while ((curr = head) != NULL)
|
|
||||||
{
|
{
|
||||||
head = head->mNextProfilerData;
|
free(mProfileList);
|
||||||
free(curr);
|
mProfileList = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(ProfilerRootData *walk = ProfilerRootData::sRootList; walk; walk = walk->mNextRoot)
|
for(ProfilerRootData *walk = ProfilerRootData::sRootList; walk; walk = walk->mNextRoot)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue