JAL-2130 call viewer.dispose() on closing Jmol
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 20 Jun 2016 09:10:24 +0000 (10:10 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 20 Jun 2016 09:10:24 +0000 (10:10 +0100)
src/jalview/ext/jmol/JalviewJmolBinding.java

index 3f0847b..2133f2b 100644 (file)
@@ -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();