From b3f1f3a43cb1fd27206b27ad6387440dc3a4e253 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 20 Jun 2016 10:10:24 +0100 Subject: [PATCH] JAL-2130 call viewer.dispose() on closing Jmol --- src/jalview/ext/jmol/JalviewJmolBinding.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 3f0847b..2133f2b 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -176,6 +176,7 @@ public abstract class JalviewJmolBinding extends AAStructureBindingModel // and shut down jmol viewer.evalStringQuiet("zap"); viewer.setJmolStatusListener(null); + viewer.dispose(); lastCommand = null; viewer = null; releaseUIResources(); -- 1.7.10.2