properly release lodlist

This commit is contained in:
olebeck 2025-07-17 16:47:58 +02:00
parent df84f4d7a5
commit 6683288c77

View File

@ -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());
} }