diff options
author | Zae <zaevi@live.com> | 2022-10-11 20:49:51 +0800 |
---|---|---|
committer | Zae <zaevi@live.com> | 2022-10-11 20:49:51 +0800 |
commit | 55a491114adaba9e68a8d09fb699fb34bf297fff (patch) | |
tree | 5fd7810d5a2938dcf639fec455beecf9223631dc /platform/web | |
parent | 5aadc618b6ff152dbc0ca4ea901c34a97e164091 (diff) |
Fix file locked issue when exporting to Web.
Diffstat (limited to 'platform/web')
-rw-r--r-- | platform/web/export/export_plugin.cpp | 1 |
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); |