git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4020 Added search for PyMOLWinWithConsole.bat (and PyMOLWin.exe) in likely places...
[jalview.git]
/
src
/
jalview
/
appletgui
/
OverviewCanvas.java
diff --git
a/src/jalview/appletgui/OverviewCanvas.java
b/src/jalview/appletgui/OverviewCanvas.java
index
ecc90b8
..
07f5919
100644
(file)
--- a/
src/jalview/appletgui/OverviewCanvas.java
+++ b/
src/jalview/appletgui/OverviewCanvas.java
@@
-128,8
+128,7
@@
public class OverviewCanvas extends Component
{
mg.translate(0, od.getSequencesHeight());
or.drawGraph(mg, av.getAlignmentConservationAnnotation(),
{
mg.translate(0, od.getSequencesHeight());
or.drawGraph(mg, av.getAlignmentConservationAnnotation(),
- av.getCharWidth(), od.getGraphHeight(),
- od.getColumns(av.getAlignment()));
+ od.getGraphHeight(), od.getColumns(av.getAlignment()));
mg.translate(0, -od.getSequencesHeight());
}
mg.translate(0, -od.getSequencesHeight());
}
@@
-163,4
+162,12
@@
public class OverviewCanvas extends Component
}
}
}
}
+ /**
+ * Nulls references to protect against potential memory leaks
+ */
+ void dispose()
+ {
+ od = null;
+ }
+
}
}