From 51441f0e70e2a04296424b0a7d9884869f945c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Tue, 1 Aug 2023 23:20:25 +0200 Subject: [PATCH] Fixed memory leak --- GlitchyEditor/src/EditorLayer.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GlitchyEditor/src/EditorLayer.bf b/GlitchyEditor/src/EditorLayer.bf index ee99c85..97cda7e 100644 --- a/GlitchyEditor/src/EditorLayer.bf +++ b/GlitchyEditor/src/EditorLayer.bf @@ -518,7 +518,7 @@ namespace GlitchyEditor String fileTargetPath = scope String(); project.PathInProject(fileTargetPath, fileName); - String fileContent = new:ScopedAlloc! String(); + String fileContent = scope String(); if (File.ReadAllText(fileTargetPath, fileContent, true) case .Err) { Log.EngineLogger.Error($"FixupFile: Failed to read file {fileTargetPath}.");