From 6683288c77114579d0e610023ffeaa62b01f2792 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Thu, 17 Jul 2025 16:47:58 +0200 Subject: [PATCH] properly release lodlist --- LEGO1/viewmanager/viewlodlist.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/LEGO1/viewmanager/viewlodlist.cpp b/LEGO1/viewmanager/viewlodlist.cpp index ca57bc01..928ca0fa 100644 --- a/LEGO1/viewmanager/viewlodlist.cpp +++ b/LEGO1/viewmanager/viewlodlist.cpp @@ -50,14 +50,10 @@ ViewLODListManager::~ViewLODListManager() delete const_cast(pLODList->PopBack()); } - delete pLODList; - // ??? for now - delete[] const_cast(rROIName); + pLODList->Release(); } - // ??? correct way of "emptying" map - m_map.erase(m_map.begin(), m_map.end()); - + m_map.clear(); assert(m_map.begin() == m_map.end()); }