Forráskód Böngészése

7zip: don't forget to destroy the PHYSFS_Io when closing the archive!
(transplanted from bc6cd61b76288298feb2d997b99f19deb75fd90c)

Ryan C. Gordon 8 éve
szülő
commit
e216897cb9
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      src/physfs_archiver_7z.c

+ 2 - 0
src/physfs_archiver_7z.c

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