diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-24 11:37:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 11:37:45 +0200 |
commit | 4b4c0c0ef4e1a3d0b296615ae19e5b04dfa47b8b (patch) | |
tree | 2e01f869536793272a546acba7ea93fe3df428e7 | |
parent | 635d0c9b449e34267b52a237f7ce21838d90b6ce (diff) | |
parent | a65dac3fa728527ea83ba6d2b065dc83500fb3ee (diff) |
Merge pull request #49013 from zaevi/fix-zip-close
Fix duplicate close file when deconstructing ZipArchive
-rw-r--r-- | core/io/file_access_zip.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/io/file_access_zip.cpp b/core/io/file_access_zip.cpp index 304e24ee90..d7ff1b7e00 100644 --- a/core/io/file_access_zip.cpp +++ b/core/io/file_access_zip.cpp @@ -226,9 +226,7 @@ ZipArchive::ZipArchive() { ZipArchive::~ZipArchive() { for (int i = 0; i < packages.size(); i++) { - FileAccess *f = (FileAccess *)unzGetOpaque(packages[i].zfile); unzClose(packages[i].zfile); - memdelete(f); } packages.clear(); |