this works but we're still not always freeing up memory...ugh

This commit is contained in:
DarthArgus
2016-12-02 16:47:17 +00:00
parent 4638386552
commit c7e825e4a9
2 changed files with 2 additions and 11 deletions
@@ -31,8 +31,8 @@ void TaskSaveSnapshot::onComplete()
m_snapshot->saveCompleted();
Persister::getInstance().saveCompleted(m_snapshot);
delete m_snapshot;
m_snapshot = nullptr;
// delete m_snapshot;
// m_snapshot = nullptr;
}
// ======================================================================
@@ -61,9 +61,6 @@ public:
int m_nameId;
IndexKey(const NetworkId &objectId, int nameId);
~IndexKey(){
m_nameId = 0;
}
bool operator==(const IndexKey &rhs) const;
bool operator<(const IndexKey &rhs) const;
};
@@ -74,12 +71,6 @@ public:
std::string m_value;
bool m_detached;
bool m_inDatabase;
~ObjvarValue(){
m_type = 0;
m_detached = 0;
m_inDatabase = 0;
m_value.clear();
}
};
typedef std::map<IndexKey,ObjvarValue> DataType;