Fix duplicate close files when deconstructing ZipArchive

(cherry picked from commit a65dac3fa7)
This commit is contained in:
Zae 2021-05-24 14:25:02 +08:00 committed by Rémi Verschelde
parent 5b8b3f645e
commit f87096ecea
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 3 deletions

View File

@ -244,10 +244,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();