1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

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 f78c276abe
commit 3756fbd463

View File

@@ -229,9 +229,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();