diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2020-01-22 09:34:18 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2020-01-22 09:34:18 +0800 |
commit | a7368a519eeb69377c1acd4143e037e8c05e1619 (patch) | |
tree | a668f70209efe0bbdceb8b58522bca4c2fb23057 /core/io/zip_io.cpp | |
parent | 5127afa812f80c02e6f9fada854d46482daafca4 (diff) |
Fixes leak when importing zip in AssetLib
Diffstat (limited to 'core/io/zip_io.cpp')
-rw-r--r-- | core/io/zip_io.cpp | 1 |
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; |