summaryrefslogtreecommitdiff
path: root/platform/web
diff options
context:
space:
mode:
authorZae <zaevi@live.com>2022-10-11 20:49:51 +0800
committerZae <zaevi@live.com>2022-10-11 20:49:51 +0800
commit55a491114adaba9e68a8d09fb699fb34bf297fff (patch)
tree5fd7810d5a2938dcf639fec455beecf9223631dc /platform/web
parent5aadc618b6ff152dbc0ca4ea901c34a97e164091 (diff)
Fix file locked issue when exporting to Web.
Diffstat (limited to 'platform/web')
-rw-r--r--platform/web/export/export_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp
index 1c327fe4b2..f59ac54f20 100644
--- a/platform/web/export/export_plugin.cpp
+++ b/platform/web/export/export_plugin.cpp
@@ -485,6 +485,7 @@ Error EditorExportPlatformWeb::export_project(const Ref<EditorExportPreset> &p_p
}
html.resize(f->get_length());
f->get_buffer(html.ptrw(), html.size());
+ f.unref(); // close file.
// Generate HTML file with replaced strings.
_fix_html(html, p_preset, base_name, p_debug, p_flags, shared_objects, file_sizes);