summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-01 23:58:24 +0200
committerGitHub <noreply@github.com>2022-07-01 23:58:24 +0200
commit2f0b2d6654de7094bc224d2680b17bfeccd57008 (patch)
tree4ce518765c3e0e9fa93e3239d8c57537ad660c6e /platform
parent692c2d9215040115b4c3fdf2a02cc1cf8dbdb851 (diff)
parent4cca1352b9a7b34ffb797ee34cff354c7ae40466 (diff)
Merge pull request #62616 from bruvzg/fix_macos_chmod
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/export/export_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/osx/export/export_plugin.cpp b/platform/osx/export/export_plugin.cpp
index 7010709123..00a7e54131 100644
--- a/platform/osx/export/export_plugin.cpp
+++ b/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);