File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -972,6 +972,7 @@ public boolean handleClose(Editor editor, boolean modeSwitch) {
972972 editor .setVisible (false );
973973 editor .dispose ();
974974 activeEditor = null ;
975+ editors .remove (editor );
975976 } else {
976977 // Since this wasn't an actual Quit event, call System.exit()
977978 System .exit (0 );
@@ -982,6 +983,7 @@ public boolean handleClose(Editor editor, boolean modeSwitch) {
982983 defaultFileMenu .insert (sketchbookMenu , 2 );
983984// defaultFileMenu.insert(defaultMode.getExamplesMenu(), 3);
984985 activeEditor = null ;
986+ editors .remove (editor );
985987 }
986988
987989 } else {
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ X 'unexpected token void' for any type of error
66X (due to fallback in preprocessor)
77X 'public' keyword in class declarations breaks syntax checker
88X http://code.google.com/p/processing/issues/detail?id=551
9+ X found issue where editor objects were being kept around after closing
10+ X particularly on mac os x, since the object wasn't being removed at 1 editor
911
1012_ with one sketch open, changing the mode doesn't close the original editor
1113_ only affects linux and windows
You can’t perform that action at this time.
0 commit comments