]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
*** empty log message ***
authorstv <stv@opencascade.com>
Tue, 29 Apr 2008 14:41:05 +0000 (14:41 +0000)
committerstv <stv@opencascade.com>
Tue, 29 Apr 2008 14:41:05 +0000 (14:41 +0000)
src/Qtx/QtxActionMenuMgr.cxx

index da5bb675e963c5ada81a0b3091b587f2e9d2de7f..9a1af4136779f61fe18ae500313b4037a2416d58 100644 (file)
@@ -139,8 +139,9 @@ QtxActionMenuMgr::~QtxActionMenuMgr()
 {
   for ( MenuMap::Iterator itr = myMenus.begin(); itr != myMenus.end(); ++itr )
   {
-    delete itr.value()->menu();
-    delete itr.value();
+    QPointer<QAction> a = itr.value();
+    delete a->menu();
+    delete a;
   }
 
   delete myRoot;