summaryrefslogtreecommitdiff
path: root/core/os/dir_access.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/os/dir_access.h')
-rw-r--r--core/os/dir_access.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/os/dir_access.h b/core/os/dir_access.h
index 06b3abca8c..6bce9a4c12 100644
--- a/core/os/dir_access.h
+++ b/core/os/dir_access.h
@@ -133,8 +133,9 @@ struct DirAccessRef {
DirAccessRef(DirAccess *fa) { f = fa; }
~DirAccessRef() {
- if (f)
+ if (f) {
memdelete(f);
+ }
}
};