为非托管数组添加释放

This commit is contained in:
2025-12-05 16:26:42 +08:00
parent 3d83ae0837
commit 85b505fe7e
3 changed files with 23 additions and 2 deletions

View File

@@ -53,5 +53,11 @@ namespace Demo.Game
{
return Count;
}
private void OnDestroy()
{
if (Datas.IsCreated)
Datas.Dispose();
}
}
}