From 377a55f60f6dca906402825df3634f4ec20da217 Mon Sep 17 00:00:00 2001 From: kaixindeken Date: Fri, 12 May 2023 13:52:53 +0800 Subject: fix exit doesnt free jump table completely (#781) --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 71c6caba..e6d22201 100755 --- a/src/main.c +++ b/src/main.c @@ -1194,10 +1194,6 @@ void endBox64() box64_quit = 1; printf_log(LOG_DEBUG, "Calling fini for all loaded elfs and unload native libs\n"); RunElfFini(my_context->elfs[0], emu); - #ifdef DYNAREC - // disable dynarec now - box64_dynarec = 0; - #endif FreeLibrarian(&my_context->local_maplib, emu); // unload all libs FreeLibrarian(&my_context->maplib, emu); // unload all libs #if 0 @@ -1241,6 +1237,10 @@ void endBox64() #endif // all done, free context FreeBox64Context(&my_context); + #ifdef DYNAREC + // disable dynarec now + box64_dynarec = 0; + #endif if(box64_libGL) { box_free(box64_libGL); box64_libGL = NULL; -- cgit 1.4.1