@@ -85,6 +85,10 @@ namespace Spine.Unity {
}
+ void OnDestroy () {
+ if (buffers != null) buffers.Dispose();
+ }
+
public void ClearMesh () {
LazyIntialize();
meshFilter.sharedMesh = null;
@@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.spine-unity",
"displayName": "spine-unity Runtime",
"description": "This plugin provides the spine-unity runtime core.",
- "version": "4.2.30",
+ "version": "4.2.31",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",