this is a better way of nuking saved snapshots

This commit is contained in:
DarthArgus
2016-11-30 22:16:33 +00:00
parent cd3c1f3fe8
commit 31bce71c33
3 changed files with 36 additions and 8 deletions
@@ -30,6 +30,9 @@ void TaskSaveSnapshot::onComplete()
{
m_snapshot->saveCompleted();
Persister::getInstance().saveCompleted(m_snapshot);
delete m_snapshot;
m_snapshot = nullptr;
}
// ======================================================================