From e216897cb9bc72315d901eac15785e70d6b7b37c Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 8 Mar 2018 11:47:42 -0500 Subject: [PATCH] 7zip: don't forget to destroy the PHYSFS_Io when closing the archive! (transplanted from bc6cd61b76288298feb2d997b99f19deb75fd90c) --- src/physfs_archiver_7z.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/physfs_archiver_7z.c b/src/physfs_archiver_7z.c index f35a0b1..914f691 100644 --- a/src/physfs_archiver_7z.c +++ b/src/physfs_archiver_7z.c @@ -203,6 +203,8 @@ static void SZIP_closeArchive(void *opaque) SZIPinfo *info = (SZIPinfo *) opaque; if (info) { + if (info->io) + info->io->destroy(info->io); SzArEx_Free(&info->db, &SZIP_SzAlloc); __PHYSFS_DirTreeDeinit(&info->tree); allocator.Free(info);