mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
scrub memlogs
ensures you can run leaktrace multiple times without a restart without accumulations
This commit is contained in:
parent
874229047c
commit
ab5fcc00e9
1 changed files with 2 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ namespace Memory
|
||||||
{
|
{
|
||||||
if (initialized) return;
|
if (initialized) return;
|
||||||
std::memset(allocList, 0, sizeof(allocList));
|
std::memset(allocList, 0, sizeof(allocList));
|
||||||
|
std::memset(memLog, 0, sizeof(memLog));
|
||||||
allocCount = 0;
|
allocCount = 0;
|
||||||
currentAllocId = 0;
|
currentAllocId = 0;
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
@ -209,6 +210,7 @@ namespace Memory
|
||||||
std::fclose(log);
|
std::fclose(log);
|
||||||
|
|
||||||
std::memset(allocList, 0, sizeof(allocList));
|
std::memset(allocList, 0, sizeof(allocList));
|
||||||
|
std::memset(memLog, 0, sizeof(memLog));
|
||||||
allocCount = 0;
|
allocCount = 0;
|
||||||
currentAllocId = 0;
|
currentAllocId = 0;
|
||||||
initialized = false;
|
initialized = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue