Fix duplicate close files when deconstructing ZipArchive
This commit is contained in:
parent
635d0c9b44
commit
a65dac3fa7
1 changed files with 0 additions and 2 deletions
|
@ -226,9 +226,7 @@ ZipArchive::ZipArchive() {
|
||||||
|
|
||||||
ZipArchive::~ZipArchive() {
|
ZipArchive::~ZipArchive() {
|
||||||
for (int i = 0; i < packages.size(); i++) {
|
for (int i = 0; i < packages.size(); i++) {
|
||||||
FileAccess *f = (FileAccess *)unzGetOpaque(packages[i].zfile);
|
|
||||||
unzClose(packages[i].zfile);
|
unzClose(packages[i].zfile);
|
||||||
memdelete(f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
packages.clear();
|
packages.clear();
|
||||||
|
|
Loading…
Reference in a new issue