Fixed memory leak

This commit is contained in:
Simon Lübeß
2023-08-01 23:20:25 +02:00
parent d2600c7517
commit 51441f0e70
+1 -1
View File
@@ -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}.");