浏览代码

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

NathanSweet 6 年之前
父节点
当前提交
69df56826d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skin.java

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

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