mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Fixed memory leak
This commit is contained in:
@@ -518,7 +518,7 @@ namespace GlitchyEditor
|
|||||||
String fileTargetPath = scope String();
|
String fileTargetPath = scope String();
|
||||||
project.PathInProject(fileTargetPath, fileName);
|
project.PathInProject(fileTargetPath, fileName);
|
||||||
|
|
||||||
String fileContent = new:ScopedAlloc! String();
|
String fileContent = scope String();
|
||||||
if (File.ReadAllText(fileTargetPath, fileContent, true) case .Err)
|
if (File.ReadAllText(fileTargetPath, fileContent, true) case .Err)
|
||||||
{
|
{
|
||||||
Log.EngineLogger.Error($"FixupFile: Failed to read file {fileTargetPath}.");
|
Log.EngineLogger.Error($"FixupFile: Failed to read file {fileTargetPath}.");
|
||||||
|
|||||||
Reference in New Issue
Block a user