From: Marko Luukkainen Date: Mon, 27 May 2019 07:51:19 +0000 (+0300) Subject: Add split point actor to deletables to prevent memory leak X-Git-Tag: v1.43.0~261 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=425cb9283a59328bda111a48280da8e01d29f516;p=simantics%2F3d.git Add split point actor to deletables to prevent memory leak gitlab #4 Change-Id: I17c5a5286874eb7cad7fb24a77607f0f5da32c15 --- diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java b/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java index 336fdbd5..e653cf65 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java @@ -61,6 +61,7 @@ public class SplitPointSelectionGizmo extends vtkGizmo { actor = new MeshActor(); actor.setMesh(tube_x); + panel.addDeletable(actor); this.listener = new RenderListener() { @Override