mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-28 13:57:37 +00:00
properly release lodlist
This commit is contained in:
parent
df84f4d7a5
commit
6683288c77
@ -50,14 +50,10 @@ ViewLODListManager::~ViewLODListManager()
|
|||||||
delete const_cast<ViewLOD*>(pLODList->PopBack());
|
delete const_cast<ViewLOD*>(pLODList->PopBack());
|
||||||
}
|
}
|
||||||
|
|
||||||
delete pLODList;
|
pLODList->Release();
|
||||||
// ??? for now
|
|
||||||
delete[] const_cast<char*>(rROIName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ??? correct way of "emptying" map
|
m_map.clear();
|
||||||
m_map.erase(m_map.begin(), m_map.end());
|
|
||||||
|
|
||||||
assert(m_map.begin() == m_map.end());
|
assert(m_map.begin() == m_map.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user