Skip to content

Commit

Permalink
7zip: don't forget to destroy the PHYSFS_Io when closing the archive!
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 8, 2018
1 parent 3597a7b commit ea90a92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/physfs_archiver_7z.c
Expand Up @@ -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);
Expand Down

0 comments on commit ea90a92

Please sign in to comment.