From 55a491114adaba9e68a8d09fb699fb34bf297fff Mon Sep 17 00:00:00 2001 From: Zae Date: Tue, 11 Oct 2022 20:49:51 +0800 Subject: [PATCH] Fix file locked issue when exporting to Web. --- platform/web/export/export_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp index 1c327fe4b2c..f59ac54f20a 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 &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);