AWTInputAdapter: unregister event listeners on destroy()
This commit is contained in:
parent
0e10718b16
commit
3fc91a641c
|
@ -84,6 +84,10 @@ abstract class AbstractAWTInput implements AWTCanvasInputImplementation {
|
|||
public synchronized void destroy() {
|
||||
canvas.setInput(null);
|
||||
canvas = null;
|
||||
if (mouse_queue != null)
|
||||
mouse_queue.unregister();
|
||||
if (keyboard_queue != null)
|
||||
keyboard_queue.unregister();
|
||||
}
|
||||
|
||||
public final int getWidth() {
|
||||
|
|
|
@ -60,7 +60,4 @@ final class MacOSXAWTInput extends AbstractAWTInput {
|
|||
((MacOSXMouseEventQueue)getMouseEventQueue()).warpCursor();
|
||||
had_focus = has_focus;
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue