Skip to content

Commit ecf4ac8

Browse files
committed
Fixed another memory leak
1 parent cb88161 commit ecf4ac8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/asar/interface-lib.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ EXPORT bool asar_patch(const struct patchparams_base *params)
458458

459459
asar_patch_main(paramscurrent.patchloc);
460460

461+
// RPG Hacker: Required before the destroy() below,
462+
// otherwise it will leak memory.
463+
closecachedfiles();
464+
461465
new_filesystem.destroy();
462466
filesystem = nullptr;
463467

0 commit comments

Comments
 (0)