Salome HOME
Fix for the bug IPAL22857: "Find element by point problems"
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Hypotheses.cxx
index 49618fc8b47b5350702a9f25971a39f3fd5cc79d..4c3438dc7ace67bbdafdc9abd05a4927f1ca9c6b 100644 (file)
@@ -150,8 +150,10 @@ void SMESHGUI_GenericHypothesisCreator::editHypothesis( SMESH::SMESH_Hypothesis_
     Dlg->show();
     Dlg->resize( Dlg->minimumSizeHint() );
   }
-  else
+  else {
     emit finished( QDialog::Accepted );
+        delete myDlg;
+  }
 }
 
 QFrame* SMESHGUI_GenericHypothesisCreator::buildStdFrame()