mirror of
https://github.com/godotengine/godot.git
synced 2024-11-14 16:13:08 +00:00
Merge pull request #49013 from zaevi/fix-zip-close
Fix duplicate close file when deconstructing ZipArchive
This commit is contained in:
commit
4b4c0c0ef4
@ -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