public void dispose () { // OK to call multiple times. synchronized (threadLock) { if (thread == this) thread = null; instances.clear(); threadLock.notifyAll(); } Gdx.app.removeLifecycleListener(this); } }
public void dispose () { // OK to call multiple times. synchronized (threadLock) { if (thread == this) thread = null; instances.clear(); threadLock.notifyAll(); } Gdx.app.removeLifecycleListener(this); } }
public void dispose () { // OK to call multiple times. synchronized (threadLock) { if (thread == this) thread = null; instances.clear(); threadLock.notifyAll(); } Gdx.app.removeLifecycleListener(this); } }
iconAtlas = null; Gdx.app.removeLifecycleListener(this); instance = null;