summaryrefslogtreecommitdiff
path: root/core/os/file_access.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/os/file_access.h')
-rw-r--r--core/os/file_access.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/os/file_access.h b/core/os/file_access.h
index a956ae12f4..48b9ee4269 100644
--- a/core/os/file_access.h
+++ b/core/os/file_access.h
@@ -190,8 +190,9 @@ struct FileAccessRef {
FileAccessRef(FileAccess *fa) { f = fa; }
~FileAccessRef() {
- if (f)
+ if (f) {
memdelete(f);
+ }
}
};