Browse Source

Merge pull request #62616 from bruvzg/fix_macos_chmod

Rémi Verschelde 3 years ago
parent
commit
2f0b2d6654
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/osx/export/export_plugin.cpp

+ 1 - 0
platform/osx/export/export_plugin.cpp

@@ -1086,6 +1086,7 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p
 				Ref<FileAccess> f = FileAccess::open(file, FileAccess::WRITE);
 				if (f.is_valid()) {
 					f->store_buffer(data.ptr(), data.size());
+					f.unref();
 					if (is_execute) {
 						// chmod with 0755 if the file is executable.
 						FileAccess::set_unix_permissions(file, 0755);