From: nds Date: Mon, 27 Oct 2008 14:02:35 +0000 (+0000) Subject: Merging with BR_V5_DEV. X-Git-Tag: V1_1_0~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d41f854bfeffe0f1c16e3779f8da0b6b43bb176;p=modules%2Fgui.git Merging with BR_V5_DEV. --- diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 8af1e6246..9f8d9fb4f 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -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