summaryrefslogtreecommitdiff
path: root/core/io/file_access_encrypted.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/file_access_encrypted.cpp')
-rw-r--r--core/io/file_access_encrypted.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/io/file_access_encrypted.cpp b/core/io/file_access_encrypted.cpp
index 2443e2bea0..5d44ff3f10 100644
--- a/core/io/file_access_encrypted.cpp
+++ b/core/io/file_access_encrypted.cpp
@@ -122,9 +122,7 @@ void FileAccessEncrypted::close() {
_release();
- file->close();
-
- file = Ref<FileAccess>();
+ file.unref();
}
void FileAccessEncrypted::release() {
@@ -134,7 +132,7 @@ void FileAccessEncrypted::release() {
_release();
- file = Ref<FileAccess>();
+ file.unref();
}
void FileAccessEncrypted::_release() {