mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix duplicate close files when deconstructing ZipArchive
This commit is contained in:
parent
635d0c9b44
commit
a65dac3fa7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user