From: eap Date: Wed, 5 Feb 2014 08:20:55 +0000 (+0000) Subject: 22359: Body Fitting algorithm: grid orientation X-Git-Tag: V7_4_0a1~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5c9a9bf94086a339c464364b5113edbe4fac3ea9;p=modules%2Fsmesh.git 22359: Body Fitting algorithm: grid orientation Fix the destructor --- diff --git a/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx b/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx index ea861e8ed..eadc34879 100644 --- a/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx @@ -103,15 +103,15 @@ SMESHGUI_MeshEditPreview::~SMESHGUI_MeshEditPreview() { myGrid->Delete(); - myViewWindow->RemoveActor(myPreviewActor); - myPreviewActor->Delete(); - for ( size_t iA = 0; iA < myLabelActors.size(); ++iA ) if ( myLabelActors[iA] ) { myPreviewActor->GetRenderer()->RemoveActor( myLabelActors[iA] ); myLabelActors[iA]->Delete(); } + + myViewWindow->RemoveActor(myPreviewActor); + myPreviewActor->Delete(); } //================================================================================