From: stv Date: Tue, 29 Apr 2008 14:41:05 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4353229999846949d09652b14c055b9b91529d08;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/Qtx/QtxActionMenuMgr.cxx b/src/Qtx/QtxActionMenuMgr.cxx index da5bb675e..9a1af4136 100644 --- a/src/Qtx/QtxActionMenuMgr.cxx +++ b/src/Qtx/QtxActionMenuMgr.cxx @@ -139,8 +139,9 @@ QtxActionMenuMgr::~QtxActionMenuMgr() { for ( MenuMap::Iterator itr = myMenus.begin(); itr != myMenus.end(); ++itr ) { - delete itr.value()->menu(); - delete itr.value(); + QPointer a = itr.value(); + delete a->menu(); + delete a; } delete myRoot;