nit picking on unrelated to the leak things...

This commit is contained in:
DarthArgus
2016-12-02 23:49:19 +00:00
parent c7e825e4a9
commit 5d8b7fe160
3 changed files with 3 additions and 6 deletions
@@ -30,9 +30,6 @@ void TaskSaveSnapshot::onComplete()
{
m_snapshot->saveCompleted();
Persister::getInstance().saveCompleted(m_snapshot);
// delete m_snapshot;
// m_snapshot = nullptr;
}
// ======================================================================
@@ -3235,12 +3235,10 @@ bool ServerObject::persist()
ServerObject *parent = static_cast<ServerObject*>(ContainerInterface::getContainedByObject(*this));
if (parent && !parent->isPersisted())
{
WARNING(true, ("Persisting %s into %s which is not persisted!", getNetworkId().getValueString().c_str(), parent->getNetworkId().getValueString().c_str()));
WARNING(true, ("Persisting %s into %s, which is not persisted!", getNetworkId().getValueString().c_str(), parent->getNetworkId().getValueString().c_str()));
}
#endif
m_persisted = true;
markChildrenPersisted();
sendCreateAndBaselinesToDatabaseServer();
@@ -105,6 +105,8 @@ IndexedNetworkTableBuffer<BUFFERROW,ROW,QUERY,SELECTQUERY>::~IndexedNetworkTable
++m_sRowsDeleted;
i->second=nullptr;
}
m_rows.clear();
}
// ----------------------------------------------------------------------