Fixed ScriptClass leaking

This commit is contained in:
Simon Lübeß
2023-03-30 15:13:21 +02:00
parent 4fd9a924a0
commit ef5e4ba64f
7 changed files with 66 additions and 26 deletions
@@ -453,6 +453,7 @@ namespace GlitchyEditor.EditWindows
className == scriptComponent.Instance?.ScriptClass.FullName))
{
scriptComponent.Instance = new ScriptInstance(script);
scriptComponent.Instance.ReleaseRef();
}
}