When destroying applet, delete all InterruptManagers too.
catseye
13 years ago
275 | 275 | stopping = true; |
276 | 276 | if (cpu != null) |
277 | 277 | cpu.stop(); |
278 | if (screen != null) | |
278 | if (screen != null) { | |
279 | screen.deleteInterruptManagers(); | |
279 | 280 | screen.motorSound(false); |
281 | } | |
280 | 282 | cpu = null; |
281 | 283 | screen = null; |
282 | 284 | removeKeyListener(canvas); |