From: ouv Date: Thu, 22 Oct 2009 09:23:41 +0000 (+0000) Subject: Bug IPAL21421 - TC5.1.3:SIGSEGV is shown after creation of scaled presentation ?Defor... X-Git-Tag: V5_1_main_20091023 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7fadcf37f960898c22eac7df259f5ec3509f2412;p=modules%2Fvisu.git Bug IPAL21421 - TC5.1.3:SIGSEGV is shown after creation of scaled presentation ?Deformed Shape? and closing of application --- 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