summaryrefslogtreecommitdiff
path: root/modules/etc/texture_loader_pkm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/etc/texture_loader_pkm.cpp')
-rw-r--r--modules/etc/texture_loader_pkm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/etc/texture_loader_pkm.cpp b/modules/etc/texture_loader_pkm.cpp
index 4d8af6883f..da6da74025 100644
--- a/modules/etc/texture_loader_pkm.cpp
+++ b/modules/etc/texture_loader_pkm.cpp
@@ -91,6 +91,8 @@ RES ResourceFormatPKM::load(const String &p_path, const String &p_original_path,
if (r_error)
*r_error = OK;
+ f->close();
+ memdelete(f);
return texture;
}