dispose() fix from 0100 to make size() work again

This commit is contained in:
benfry
2006-01-14 18:24:23 +00:00
parent b103311e26
commit ec1f7ab93d
5 changed files with 23 additions and 10 deletions
+3 -3
View File
@@ -534,6 +534,9 @@ public class PApplet extends Applet
if (thread == null) return;
thread = null;
// call to shut down renderer, in case it needs it (pdf does)
if (g != null) g.dispose();
disposeMethods.handle();
}
@@ -1175,9 +1178,6 @@ public class PApplet extends Applet
}
} catch (Exception e) {
// formerly in kjcapplet, now just checks to see
// if someone wants to leech off errors
// note that this will not catch errors inside setup()
// those are caught by the PdeRuntime