From 2488d6899ed380082abbb113f112901e172d61e8 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Fri, 5 Feb 2021 12:31:17 +0200 Subject: [PATCH] Dispose method for ModelUpdate gitlab #28 Change-Id: Idde40dd8bd02642b06b52b47c8015b566f3be988 --- .../interop/update/model/ModelUpdate.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java b/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java index aabe29d..f3fbdda 100644 --- a/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java +++ b/org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java @@ -586,4 +586,19 @@ public abstract class ModelUpdate { public void removeListener(WarningListener listener) { warningListeners.remove(listener); } + + public void dispose() { + changes = null; + changes2 = null; + changes3 = null; + filters = null; + userFilters = null; + updateList = null; + updateList2 = null; + updateList3 = null; + updateTree = null; + updateTree2 = null; + updateTree3 = null; + updateNode3 = null; + } } -- 2.47.1