]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merging with BR_V5_DEV.
authornds <nds@opencascade.com>
Mon, 27 Oct 2008 14:02:35 +0000 (14:02 +0000)
committernds <nds@opencascade.com>
Mon, 27 Oct 2008 14:02:35 +0000 (14:02 +0000)
src/STD/STD_Application.cxx

index 8af1e624691eeae57c0e0dbdfbdad14d8affd106..9f8d9fb4f6f13a8393f51d87be2ffcfce02bbd24 100755 (executable)
@@ -275,8 +275,9 @@ bool STD_Application::onNewDoc( const QString& name )
       studyCreated( activeStudy() );
     else
     {
-      delete activeStudy();
+      SUIT_Study* st = activeStudy();
       setActiveStudy( 0 );
+      delete st;
     }
   }
   else