Skip to content

Commit

Permalink
Merge pull request #88726 from RandomShaper/node_cust_leak
Browse files Browse the repository at this point in the history
Fix leak of scene used for customization during export
  • Loading branch information
akien-mga committed Feb 23, 2024
2 parents 41f39cf + d103b55 commit 4ec8976
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/export/editor_export_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,8 @@ String EditorExportPlatform::_export_customize(const String &p_path, LocalVector
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);
}

node->queue_free();
} else {
Ref<Resource> res = ResourceLoader::load(p_path, "", ResourceFormatLoader::CACHE_MODE_IGNORE);
ERR_FAIL_COND_V(res.is_null(), p_path);
Expand Down

0 comments on commit 4ec8976

Please sign in to comment.