]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22359: Body Fitting algorithm: grid orientation
authoreap <eap@opencascade.com>
Wed, 5 Feb 2014 08:20:55 +0000 (08:20 +0000)
committereap <eap@opencascade.com>
Wed, 5 Feb 2014 08:20:55 +0000 (08:20 +0000)
Fix the destructor

src/SMESHGUI/SMESHGUI_MeshEditPreview.cxx

index ea861e8ed811d2e1fb8222c6c54f52e3d2fec86e..eadc34879a484adf17236ea9d31c2e612a97820f 100644 (file)
@@ -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();
 }
 
 //================================================================================