From 6d41f854bfeffe0f1c16e3779f8da0b6b43bb176 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 27 Oct 2008 14:02:35 +0000 Subject: [PATCH] Merging with BR_V5_DEV. --- src/STD/STD_Application.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2