diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-04-11 14:12:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 14:12:18 +0200 |
commit | 5613ac37d658820fd0e4c3162f24a3b68414d3f9 (patch) | |
tree | 533d5ed29331e94be8f6978fd98137844376d55b /platform/uwp/export/export_plugin.h | |
parent | 2ec68599a45231767bb970e7bf06a3bf7ed5fc91 (diff) | |
parent | 9381acb6a42da653cb6dfd9e610dfccead11aa98 (diff) |
Merge pull request #59440 from bruvzg/fd_ref_counted
Diffstat (limited to 'platform/uwp/export/export_plugin.h')
-rw-r--r-- | platform/uwp/export/export_plugin.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/uwp/export/export_plugin.h b/platform/uwp/export/export_plugin.h index e2a4314ef5..7f10b00dc1 100644 --- a/platform/uwp/export/export_plugin.h +++ b/platform/uwp/export/export_plugin.h @@ -346,7 +346,7 @@ class EditorExportPlatformUWP : public EditorExportPlatform { ERR_FAIL_V_MSG(data, err_string); } - FileAccess *f = FileAccess::open(tmp_path, FileAccess::READ, &err); + Ref<FileAccess> f = FileAccess::open(tmp_path, FileAccess::READ, &err); if (err != OK) { String err_string = "Couldn't open temp logo file."; @@ -359,8 +359,6 @@ class EditorExportPlatformUWP : public EditorExportPlatform { data.resize(f->get_length()); f->get_buffer(data.ptrw(), data.size()); - f->close(); - memdelete(f); DirAccess::remove_file_or_error(tmp_path); return data; |