From ff1d5b8af965e75ecdbc1b0cbff0dad6f3b3c511 Mon Sep 17 00:00:00 2001 From: srit Date: Fri, 25 Mar 2011 14:20:14 +0000 Subject: [PATCH] Delete widget first, the image data after --- vv/vvToolStructureSetManager.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vv/vvToolStructureSetManager.cxx b/vv/vvToolStructureSetManager.cxx index 227ad43..c4f3603 100644 --- a/vv/vvToolStructureSetManager.cxx +++ b/vv/vvToolStructureSetManager.cxx @@ -101,12 +101,12 @@ vvToolStructureSetManager::~vvToolStructureSetManager() { m_NumberOfTool--; + std::map::iterator it; + for (it = mMapROIToTreeWidget.begin(); it!=mMapROIToTreeWidget.end(); it++) + delete it->second; for(unsigned int i=0; i< mStructureSetActorsList.size(); i++) delete mStructureSetActorsList[i]; - for (std::map::iterator it = mMapROIToTreeWidget.begin(); - it!=mMapROIToTreeWidget.end(); it++) - delete it->second; } //------------------------------------------------------------------------------ -- 2.47.1