about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibz.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedlibz.c')
-rwxr-xr-xsrc/wrapped/wrappedlibz.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wrapped/wrappedlibz.c b/src/wrapped/wrappedlibz.c
index 75f77e96..8d3ebb7a 100755
--- a/src/wrapped/wrappedlibz.c
+++ b/src/wrapped/wrappedlibz.c
@@ -154,11 +154,9 @@ EXPORT int my_inflate(x64emu_t* emu, void* str, int flush)
 
 
 #define CUSTOM_INIT \
-    box64->zlib = lib; \
     getMy(lib);
 
 #define CUSTOM_FINI \
-    freeMy(); \
-    ((box64context_t*)(lib->context))->zlib = NULL;
+    freeMy();
 
 #include "wrappedlib_init.h"