proper cleanup

This commit is contained in:
Gered 2013-07-20 11:41:32 -04:00
parent d114f5bb9c
commit 5cc58defb8

View file

@ -71,6 +71,10 @@ public class TextureAtlasAnimator implements Disposable {
); );
} }
// may need to dispose of the TextureAtlas's texture Pixmap that we obtained (depending on TextureData implementation)
if (textureData.disposePixmap())
textureImage.dispose();
// all good! // all good!
animations.put(name, sequence); animations.put(name, sequence);
} }