为非托管数组添加释放
This commit is contained in:
@@ -53,5 +53,11 @@ namespace Demo.Game
|
||||
{
|
||||
return Count;
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
if (Datas.IsCreated)
|
||||
Datas.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user