summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-22 07:40:50 +0100
committerGitHub <noreply@github.com>2020-01-22 07:40:50 +0100
commit2ee15f650ece181074c5d9758cf56db37bfdee73 (patch)
tree2ed8e70e47dcb30db6ded05d9e153cbadbfc219f
parent7c632968b2d62dec75228908bc701a5aca4a7b0d (diff)
parenta7368a519eeb69377c1acd4143e037e8c05e1619 (diff)
Merge pull request #35425 from timothyqiu/assetlib-import-leak
Fixes leak when importing zip in AssetLib
-rw-r--r--core/io/zip_io.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/zip_io.cpp b/core/io/zip_io.cpp
index 582b7c906b..40e902d874 100644
--- a/core/io/zip_io.cpp
+++ b/core/io/zip_io.cpp
@@ -97,6 +97,7 @@ int zipio_close(voidpf opaque, voidpf stream) {
FileAccess *&f = *(FileAccess **)opaque;
if (f) {
f->close();
+ memdelete(f);
f = NULL;
}
return 0;