]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug: mesh is not destructed (leaks) after element selection.
authoreap <eap@opencascade.com>
Mon, 22 Jul 2013 13:57:32 +0000 (13:57 +0000)
committereap <eap@opencascade.com>
Mon, 22 Jul 2013 13:57:32 +0000 (13:57 +0000)
In RemoveActor(), remove actors from SVTK_InteractorStyle's as well

+  if ( myDefaultInteractorStyle )
+    myDefaultInteractorStyle->FreeActors();
+  if ( myKeyFreeInteractorStyle )
+    myKeyFreeInteractorStyle->FreeActors();

src/SVTK/SVTK_ViewWindow.cxx

index 757193b53fa3a275cc3ae28a6c0b3727c81e192c..4f7091ac4c21d289fbd84f8c4a25849bc5f54d24 100755 (executable)
@@ -1101,6 +1101,10 @@ void SVTK_ViewWindow::RemoveActor( VTKViewer_Actor* theActor,
                                    bool theIsAdjustActors )
 {
   GetRenderer()->RemoveActor(theActor, theIsAdjustActors);
+  if ( myDefaultInteractorStyle )
+    myDefaultInteractorStyle->FreeActors();
+  if ( myKeyFreeInteractorStyle )
+    myKeyFreeInteractorStyle->FreeActors();
   if(theUpdate) 
     Repaint();
   emit actorRemoved(theActor);