Browse Source

[libgdx] Limit the number of entries nulled when a skin is cleared.

NathanSweet 6 years ago
parent
commit
69df56826d

+ 1 - 1
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java

@@ -94,7 +94,7 @@ public class Skin {
 	public void clear () {
 		for (Key key : attachments.keys())
 			keyPool.free(key);
-		attachments.clear();
+		attachments.clear(1024);
 	}
 
 	/** The skin's name, which is unique within the skeleton. */