summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-12 14:44:32 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-12 14:44:32 +0200
commit06dc4648bfd1be51a97a5e10d9ce6b4512e78e76 (patch)
tree35b84399335eae94a8075ee106b6c56ccf83391c /platform
parent3e653c884c32fa59edf14a7f666ffad6be13ec8d (diff)
parent55a491114adaba9e68a8d09fb699fb34bf297fff (diff)
Merge pull request #67252 from zaevi/web_fix_export_file_locked
[Web] Fix file locked issue when exporting to Web.
Diffstat (limited to 'platform')
-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);