7zip: don't forget to destroy the PHYSFS_Io when closing the archive! stable-3.0
authorRyan C. Gordon <icculus@icculus.org>
Thu, 08 Mar 2018 11:47:42 -0500
branchstable-3.0
changeset 1634 5c3248d49cfe
parent 1629 540be489d50f
child 1636 05bdebfc6ebf
7zip: don't forget to destroy the PHYSFS_Io when closing the archive!
(transplanted from bc6cd61b76288298feb2d997b99f19deb75fd90c)
src/physfs_archiver_7z.c
--- a/src/physfs_archiver_7z.c	Sat Nov 11 08:53:23 2017 -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);