Destroy EditorFilesystem/EditorSettings on test shutdown
Otherwise asan complains if a test tries to use these. Split off from https://github.com/godotengine/godot/pull/98909
This commit is contained in:
parent
0f20e67d8d
commit
35bb827d10
3 changed files with 8 additions and 0 deletions
|
|
@ -3556,5 +3556,9 @@ EditorFileSystem::EditorFileSystem() {
|
|||
}
|
||||
|
||||
EditorFileSystem::~EditorFileSystem() {
|
||||
if (filesystem) {
|
||||
memdelete(filesystem);
|
||||
}
|
||||
filesystem = nullptr;
|
||||
ResourceSaver::set_get_resource_id_for_path(nullptr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue