You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Fix duplicate close files when deconstructing ZipArchive
(cherry picked from commit a65dac3fa7)
This commit is contained in:
@@ -244,10 +244,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();
|
||||||
|
|||||||
Reference in New Issue
Block a user