From 7774e01d3ee82d6c7df75b645e21c160a93b953b Mon Sep 17 00:00:00 2001 From: benfry Date: Fri, 11 Mar 2011 14:07:20 +0000 Subject: [PATCH] possible additional fix for ghost editors on os x --- app/src/processing/app/Base.java | 2 ++ todo.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 7391a35f8..6341cbabd 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -972,6 +972,7 @@ public class Base { editor.setVisible(false); editor.dispose(); activeEditor = null; + editors.remove(editor); } else { // Since this wasn't an actual Quit event, call System.exit() System.exit(0); @@ -982,6 +983,7 @@ public class Base { defaultFileMenu.insert(sketchbookMenu, 2); // defaultFileMenu.insert(defaultMode.getExamplesMenu(), 3); activeEditor = null; + editors.remove(editor); } } else { diff --git a/todo.txt b/todo.txt index 7eb2b44e5..953b590e0 100644 --- a/todo.txt +++ b/todo.txt @@ -6,6 +6,8 @@ X 'unexpected token void' for any type of error X (due to fallback in preprocessor) X 'public' keyword in class declarations breaks syntax checker X http://code.google.com/p/processing/issues/detail?id=551 +X found issue where editor objects were being kept around after closing +X particularly on mac os x, since the object wasn't being removed at 1 editor _ with one sketch open, changing the mode doesn't close the original editor _ only affects linux and windows