From 566d39d92836f5502006d30c88beee9e8dff8f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 27 Jul 2025 16:43:34 +0200 Subject: [PATCH] Fixed memory leak --- GlitchyEngine/src/Scripting/ScriptEngine.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GlitchyEngine/src/Scripting/ScriptEngine.bf b/GlitchyEngine/src/Scripting/ScriptEngine.bf index 32d3699..040bb5a 100644 --- a/GlitchyEngine/src/Scripting/ScriptEngine.bf +++ b/GlitchyEngine/src/Scripting/ScriptEngine.bf @@ -285,10 +285,10 @@ static class ScriptEngine // TODO: Check if files exist if (File.Exists(_appAssemblyPath)) { - List data = new:ScopedAlloc! List(1024); + List data = scope List(); File.ReadAll(_appAssemblyPath, data); - List pdbData = new:ScopedAlloc! List(1024); + List pdbData = scope List(); String pdbPath = scope .(); Path.ChangeExtension(_appAssemblyPath, ".pdb", pdbPath);