JAL-2130 call viewer.dispose() on closing Jmol
[jalview.git] / 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();