public void dispose() { for (Animation anim : this.animations) { anim.dispose(); } this.animations.clear(); this.currAnimation = null; }
public void dispose() { if (gifDecoder != null) { gifDecoder = null; } if (animation != null) { animation.dispose(); animation = null; } }