Salome HOME
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git] / src / SHAPERGUI / SHAPERGUI.cpp
index a2b9d61ddfa8c8b2cf8cbccfa45c82aabc517f26..e7189ffd8e38023950240ac34bb8d7198691c283 100644 (file)
@@ -137,6 +137,8 @@ SHAPERGUI::SHAPERGUI()
 //******************************************************
 SHAPERGUI::~SHAPERGUI()
 {
+  delete myWorkshop;
+  delete myProxyViewer;
 }
 
 //******************************************************
@@ -333,7 +335,7 @@ bool SHAPERGUI::deactivateModule(SUIT_Study* theStudy)
   }
 
   myIsInspectionVisible = myInspectionPanel->isVisible();
-  myInspectionPanel->setVisible(false);
+  myInspectionPanel->hide();
   QAction* aViewAct = myInspectionPanel->toggleViewAction();
   aViewAct->setEnabled(false);
 
@@ -789,4 +791,4 @@ void SHAPERGUI::updateModuleVisibilityState()
 {
   LightApp_Module::updateModuleVisibilityState();
   onWhatIs(myIsInspectionVisible);
-}
\ No newline at end of file
+}