Browse Source

Fix duplicate close files when deconstructing ZipArchive

(cherry picked from commit a65dac3fa728527ea83ba6d2b065dc83500fb3ee)
Zae 4 years ago
parent
commit
3756fbd463
1 changed files with 0 additions and 2 deletions
  1. 0 2
      core/io/file_access_zip.cpp

+ 0 - 2
core/io/file_access_zip.cpp

@@ -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();