diff options
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; |