7zip: don't forget to destroy the PHYSFS_Io when closing the archive!

(transplanted from bc6cd61b76288298feb2d997b99f19deb75fd90c)
This commit is contained in:
Ryan C. Gordon 2018-03-08 11:47:42 -05:00
parent ac1ee1a3f2
commit e216897cb9
1 changed files with 2 additions and 0 deletions

View File

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