From a65dac3fa728527ea83ba6d2b065dc83500fb3ee Mon Sep 17 00:00:00 2001 From: Zae Date: Mon, 24 May 2021 14:25:02 +0800 Subject: [PATCH] Fix duplicate close files when deconstructing ZipArchive --- core/io/file_access_zip.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/io/file_access_zip.cpp b/core/io/file_access_zip.cpp index 304e24ee905..d7ff1b7e003 100644 --- a/core/io/file_access_zip.cpp +++ b/core/io/file_access_zip.cpp @@ -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();