mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-03 18:12:58 -04:00
memory manager cleanup and removal
This commit is contained in:
@@ -42,14 +42,16 @@ Snapshot::~Snapshot()
|
||||
for (LocatorListType::iterator i=m_locatorList.begin(); i!=m_locatorList.end(); ++i)
|
||||
{
|
||||
delete *i;
|
||||
*i=0;
|
||||
*i = nullptr;
|
||||
}
|
||||
|
||||
for (CustomStepListType::iterator j=m_customStepList.begin(); j!=m_customStepList.end(); ++j)
|
||||
for (CustomStepListType::iterator j=m_customStepList.begin(); j!=m_customStepList.end(); ++j) {
|
||||
delete *j;
|
||||
*j = nullptr;
|
||||
}
|
||||
|
||||
++ms_deletionCount;
|
||||
LOG("Snapshot",("Deleted snapshot. %i outstanding, %i created, %i deleted", ms_creationCount-ms_deletionCount,ms_creationCount,ms_deletionCount));
|
||||
LOG("Snapshot",("Deleted snapshot. %i outstanding, %i created, %i deleted", ms_creationCount-ms_deletionCount,ms_creationCount,ms_deletionCount));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user