Skip to content

Commit 3d21292

Browse files
committed
Make sure old windows are disposed properly
1 parent 8395134 commit 3d21292

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/processing/app/Mode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ public void rebuildExamplesFrame() {
656656
if (visible) {
657657
bounds = examplesFrame.getBounds();
658658
examplesFrame.setVisible(false);
659+
examplesFrame.dispose();
659660
}
660661
examplesFrame = null;
661662
if (visible) {
@@ -697,6 +698,7 @@ public void rebuildSketchbookFrame() {
697698
if (visible) {
698699
bounds = sketchbookFrame.getBounds();
699700
sketchbookFrame.setVisible(false);
701+
sketchbookFrame.dispose();
700702
}
701703
sketchbookFrame = null;
702704
if (visible) {

0 commit comments

Comments
 (0)