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

This commit is contained in:
Ryan C. Gordon 2018-03-08 11:47:42 -05:00
parent 3597a7b69a
commit ea90a92016
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);