From b3b12efd6024d4f07cfac55bbd471948d9ebc258 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 10 Apr 2012 15:17:02 +0000 Subject: [PATCH] IPAL22894: Crash on closing OCC view --- src/LightApp/LightApp_Application.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 1b3f0b958..470848b45 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -3493,7 +3493,10 @@ void LightApp_Application::removeViewManager( SUIT_ViewManager* vm ) aStudy->removeViewMgr(vm->getGlobalId()); STD_Application::removeViewManager( vm ); - delete vm; + + // IPAL22894: Crash on closing OCC view + //delete vm; + vm->deleteLater(); } /*! -- 2.39.2