mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-29 23:15:56 -04:00
this works but we're still not always freeing up memory...ugh
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user