JAL-3597 additional references nulled, bug in test corrected
[jalview.git] / src / jalview / gui / PCAPanel.java
index 4f660a2..3512e42 100644 (file)
@@ -141,6 +141,12 @@ public class PCAPanel extends GPCAPanel
   protected void close_actionPerformed()
   {
     setPcaModel(null);
+    if (this.rc != null)
+    {
+      this.rc.sequencePoints = null;
+      this.rc.setAxisEndPoints(null);
+      this.rc = null;
+    }
   }
 
   @Override