Close zip files during patch search in release (fixes #864)

This commit is contained in:
OV2 2023-08-27 15:38:37 +02:00
parent 6fce8bd2ca
commit 94fbbfe0dd
1 changed files with 2 additions and 1 deletions

View File

@ -4006,7 +4006,8 @@ void CMemory::CheckForAnyPatch(const char *rom_filename, bool8 header, int32 &ro
if (!flag)
try_zip_ips_sequence("ip%d");
assert(unzClose(file) == UNZ_OK);
int close_ret = unzClose(file);
assert(close_ret == UNZ_OK);
if (flag)
return;