diff --git a/SpineViewer/Spine/Implementations/SkeletonConverter/SkeletonConverter38.cs b/SpineViewer/Spine/Implementations/SkeletonConverter/SkeletonConverter38.cs index 6ba9453..6f09f5c 100644 --- a/SpineViewer/Spine/Implementations/SkeletonConverter/SkeletonConverter38.cs +++ b/SpineViewer/Spine/Implementations/SkeletonConverter/SkeletonConverter38.cs @@ -17,7 +17,7 @@ namespace SpineViewer.Spine.Implementations.SkeletonConverter private JsonObject root = null; private bool nonessential = false; - private List idx2Event = []; + private readonly List idx2Event = []; protected override JsonObject ReadBinary(string binPath) { @@ -37,8 +37,9 @@ namespace SpineViewer.Spine.Implementations.SkeletonConverter root["animations"] = ReadAnimations(); reader = null; - nonessential = false; root = null; + nonessential = false; + idx2Event.Clear(); return result; }