diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-12 10:39:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 10:39:54 +0200 |
commit | f586e06f7b7b1066bc234198a6c11123927cb87c (patch) | |
tree | ea9684d5549f9fc9439ffaf438373f5ca5608a9a /core/io/pck_packer.cpp | |
parent | 2f7edae2b3064714b2e0fe8302366abc658955ce (diff) | |
parent | 4bf99f4af2c4918883c4382ead7de275fae21eea (diff) |
Merge pull request #60166 from bruvzg/narrow_file_access
Diffstat (limited to 'core/io/pck_packer.cpp')
-rw-r--r-- | core/io/pck_packer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/pck_packer.cpp b/core/io/pck_packer.cpp index d1a305e836..6240370504 100644 --- a/core/io/pck_packer.cpp +++ b/core/io/pck_packer.cpp @@ -216,7 +216,7 @@ Error PCKPacker::flush(bool p_verbose) { Ref<FileAccess> src = FileAccess::open(files[i].src_path, FileAccess::READ); uint64_t to_write = files[i].size; - fae = Ref<FileAccess>(); + fae.unref(); Ref<FileAccess> ftmp = file; if (files[i].encrypted) { fae.instantiate(); @@ -253,7 +253,7 @@ Error PCKPacker::flush(bool p_verbose) { printf("\n"); } - file = Ref<FileAccess>(); + file.unref(); memdelete_arr(buf); return OK; |