git @ Cat's Eye Technologies JaC64 / 52da558
When destroying applet, delete all InterruptManagers too. catseye 13 years ago
2 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
275275 stopping = true;
276276 if (cpu != null)
277277 cpu.stop();
278 if (screen != null)
278 if (screen != null) {
279 screen.deleteInterruptManagers();
279280 screen.motorSound(false);
281 }
280282 cpu = null;
281283 screen = null;
282284 removeKeyListener(canvas);
4545 managers.put(cpu.getName(), new InterruptManager(cpu));
4646 }
4747 im = (InterruptManager) managers.get(cpu.getName());
48 }
49
50 public void deleteInterruptManagers() {
51 managers = new Hashtable<String, InterruptManager>();
4852 }
4953
5054 public int getNMIFlags() {