From 7fadcf37f960898c22eac7df259f5ec3509f2412 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 22 Oct 2009 09:23:41 +0000 Subject: [PATCH] Bug IPAL21421 - TC5.1.3:SIGSEGV is shown after creation of scaled presentation ?Deformed Shape? and closing of application --- src/VISUGUI/VisuGUI.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 294e9b07..34d3d0e2 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -198,6 +198,20 @@ VisuGUI VisuGUI ::~VisuGUI() { + if( myDisplayer ) { + delete myDisplayer; + myDisplayer = 0; + } + + if( mySlider ) { + delete mySlider; + mySlider = 0; + } + + if( mySweep ) { + delete mySweep; + mySweep = 0; + } } void -- 2.39.2