From 55a491114adaba9e68a8d09fb699fb34bf297fff Mon Sep 17 00:00:00 2001 From: Zae Date: Tue, 11 Oct 2022 20:49:51 +0800 Subject: Fix file locked issue when exporting to Web. --- platform/web/export/export_plugin.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/web') 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 &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); -- cgit v1.2.3