Browse Source

Merge pull request #67252 from zaevi/web_fix_export_file_locked

[Web] Fix file locked issue when exporting to Web.
Rémi Verschelde 3 years ago
parent
commit
06dc4648bf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/web/export/export_plugin.cpp

+ 1 - 0
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);