From 4cca1352b9a7b34ffb797ee34cff354c7ae40466 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Sat, 2 Jul 2022 00:34:27 +0300 Subject: [macOS export] Unref FileAccess to ensure chmod is successful. --- platform/osx/export/export_plugin.cpp | 1 + 1 file changed, 1 insertion(+) 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 &p_p Ref 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); -- cgit v1.2.3