mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-12 22:10:11 -05:00
Merge pull request #2794 from noir-neo/fix-springbone-buffer-leak-on-cancel
Dispose SpringBone runtime when destroyed before Vrm10Runtime is created
This commit is contained in:
@@ -231,6 +231,15 @@ namespace UniVRM10
|
||||
{
|
||||
m_runtime.Dispose();
|
||||
m_runtime = null;
|
||||
m_springBoneRuntime = null;
|
||||
return;
|
||||
}
|
||||
|
||||
// m_runtime 代入前に Destroy された場合のフォールバック
|
||||
if (m_springBoneRuntime != null)
|
||||
{
|
||||
m_springBoneRuntime.Dispose();
|
||||
m_springBoneRuntime = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user