7zip: don't forget to destroy the PHYSFS_Io when closing the archive!
authorRyan C. Gordon <icculus@icculus.org>
Thu, 08 Mar 2018 11:47:42 -0500
changeset 1633 bc6cd61b7628
parent 1632 e9a16884a594
child 1635 f50073f63720
7zip: don't forget to destroy the PHYSFS_Io when closing the archive!
src/physfs_archiver_7z.c
--- a/src/physfs_archiver_7z.c	Thu Mar 08 11:51:46 2018 -0500
+++ b/src/physfs_archiver_7z.c	Thu Mar 08 11:47:42 2018 -0500
@@ -203,6 +203,8 @@
     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);