[unity] Fixed missing using statement around stream of commit fb8bc40. See #2851.

This commit is contained in:
Harald Csaszar 2025-05-16 20:34:08 +02:00
parent 80479320f7
commit 5a0d0ed696
2 changed files with 4 additions and 2 deletions

View File

@ -215,7 +215,9 @@ namespace Spine.Unity {
try {
if (hasBinaryExtension) {
#if UNSAFE_DIRECT_ACCESS_TEXT_ASSET_DATA
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(skeletonJSON.GetStreamUnsafe(), attachmentLoader, skeletonDataScale);
using (Stream stream = skeletonJSON.GetStreamUnsafe()) {
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(stream, attachmentLoader, skeletonDataScale);
}
#else
loadedSkeletonData = SkeletonDataAsset.ReadSkeletonData(skeletonJSON.bytes, attachmentLoader, skeletonDataScale);
#endif

View File

@ -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.105",
"version": "4.2.106",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",