diff --git a/GlitchyEditor/src/AssetFile.bf b/GlitchyEditor/src/AssetFile.bf index f4f9f67..d789443 100644 --- a/GlitchyEditor/src/AssetFile.bf +++ b/GlitchyEditor/src/AssetFile.bf @@ -26,9 +26,9 @@ class AssetFile { private EditorContentManager _contentManager; - private String _path; - private String _identifier; - private String _assetConfigPath ~ delete _; + private String _path ~ delete:append _; + private String _identifier ~ delete:append _; + private String _assetConfigPath ~ delete:append _; private AssetConfig _assetConfig ~ delete _; @@ -53,7 +53,7 @@ class AssetFile { String identifierBuffer = append String(identifier); String pathBuffer = append String(path); - String configPathBuffer = new String(path.Length + ConfigFileExtension.Length); + String configPathBuffer = append String(path.Length + ConfigFileExtension.Length); _identifier = identifierBuffer; _path = pathBuffer; diff --git a/GlitchyEditor/src/Assets/AssetHierarchy.bf b/GlitchyEditor/src/Assets/AssetHierarchy.bf index 3e2d8a5..2696d46 100644 --- a/GlitchyEditor/src/Assets/AssetHierarchy.bf +++ b/GlitchyEditor/src/Assets/AssetHierarchy.bf @@ -673,14 +673,12 @@ class AssetHierarchy // Directories have no AssetFile? if (node->AssetFile != null) { - // TODO: Somehow this leaks memory node->AssetFile.[Friend]_path.Set(node->Path); node->AssetFile.[Friend]_identifier.Set(newFilePath); AssetIdentifier.Fixup(node->AssetFile.[Friend]_identifier); node->AssetFile.[Friend]_assetConfigPath.Set(node->Path); - // TODO: Somehow this leaks memory node->AssetFile.[Friend]_assetConfigPath.Append(AssetFile.ConfigFileExtension); }