From 702d85ec58f98d927bad2f29abdbb2b0d212b435 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Tue, 29 Oct 2024 09:50:30 +0900 Subject: [PATCH 1/2] fix: NativeArray leak --- Internal/MeshInfo2/MeshInfo2.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Internal/MeshInfo2/MeshInfo2.cs b/Internal/MeshInfo2/MeshInfo2.cs index 65199a9d..a9ba9d39 100644 --- a/Internal/MeshInfo2/MeshInfo2.cs +++ b/Internal/MeshInfo2/MeshInfo2.cs @@ -1285,6 +1285,7 @@ public ApplyFrame2Array GetApplyFramesInfo(string shapeName, float weight, bool public void Dispose() { + Utils.DisposeAll(DeltaVertices.Concat(DeltaNormals).Concat(DeltaTangents)); } } From 3c57ca26eda09e9a098b6798c860fb9543a08781 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Tue, 29 Oct 2024 10:33:44 +0900 Subject: [PATCH 2/2] docs(changelog): NativeArray leak --- CHANGELOG-PRERELEASE.md | 1 + CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-PRERELEASE.md b/CHANGELOG-PRERELEASE.md index 803fb3a6..82ae824c 100644 --- a/CHANGELOG-PRERELEASE.md +++ b/CHANGELOG-PRERELEASE.md @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog]. ### Fixed - Fix non-VRChat project support `#1310` - 'shader' doesn't have a float or range property 'prop' error `#1312` +- NativeArray leak `#1314` ### Security diff --git a/CHANGELOG.md b/CHANGELOG.md index 28e49f0f..d852757d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,7 +69,7 @@ The format is based on [Keep a Changelog]. - Renamed debug options internally `#1228` - This will lose previously configured debug options. - However, debug options are not considered as Public API as stated in documents so this is not backward incompatible changes in semver 2.0.0 section 8. -- Performance Improvements `#1234` `#1243` `#1240` `#1288` `#1304` `#1307` +- Performance Improvements `#1234` `#1243` `#1240` `#1288` `#1304` `#1307` `#1314` - Transform gizmo are now hidden while you're editing box of Remove Mesh in Box `#1259` - This prevents mistakenly moving the Skinned Mesh Renderer while editing the box. - Make MergePhysBone implement `INetworkID` `#1260`