mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix leak of scene used for customization during export
This commit is contained in:
@@ -815,6 +815,8 @@ String EditorExportPlatform::_export_customize(const String &p_path, LocalVector
|
|||||||
Error err = ResourceSaver::save(s, save_path);
|
Error err = ResourceSaver::save(s, save_path);
|
||||||
ERR_FAIL_COND_V_MSG(err != OK, p_path, "Unable to save export scene file to: " + save_path);
|
ERR_FAIL_COND_V_MSG(err != OK, p_path, "Unable to save export scene file to: " + save_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
node->queue_free();
|
||||||
} else {
|
} else {
|
||||||
Ref<Resource> res = ResourceLoader::load(p_path, "", ResourceFormatLoader::CACHE_MODE_IGNORE);
|
Ref<Resource> res = ResourceLoader::load(p_path, "", ResourceFormatLoader::CACHE_MODE_IGNORE);
|
||||||
ERR_FAIL_COND_V(res.is_null(), p_path);
|
ERR_FAIL_COND_V(res.is_null(), p_path);
|
||||||
|
|||||||
Reference in New Issue
Block a user