]> gerrit.simantics Code Review - simantics/3d.git/commitdiff
Add split point actor to deletables to prevent memory leak 05/2905/1
authorMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 27 May 2019 07:51:19 +0000 (10:51 +0300)
committerMarko Luukkainen <marko.luukkainen@semantum.fi>
Mon, 27 May 2019 07:51:19 +0000 (10:51 +0300)
gitlab #4

Change-Id: I17c5a5286874eb7cad7fb24a77607f0f5da32c15

org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java

index 336fdbd56fbd2ea3311e82158607cef4d91fdc98..e653cf65c247facb675e6b5bc1734450ba10c995 100644 (file)
@@ -61,6 +61,7 @@ public class SplitPointSelectionGizmo extends vtkGizmo {
                
                actor = new MeshActor();
                actor.setMesh(tube_x);
+               panel.addDeletable(actor);
                
                this.listener = new RenderListener() {
                        @Override