Fixed various memory leaks + ModelLoader cleanup

This commit is contained in:
Simon Lübeß
2021-10-14 20:47:25 +02:00
parent cd82a99450
commit 84df8c111b
5 changed files with 57 additions and 229 deletions
@@ -16,9 +16,7 @@ namespace GlitchyEngine.World
if(_animationClip == value)
return;
_animationClip?.ReleaseRef();
_animationClip = value;
_animationClip?.AddRef();
SetReference!(_animationClip, value);
}
}