diff options
| author | kaixindeken <zra981217@tju.edu.cn> | 2023-05-12 13:52:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 07:52:53 +0200 |
| commit | 377a55f60f6dca906402825df3634f4ec20da217 (patch) | |
| tree | 9a41c8f66b709d59c94cef1d4d4f34ba73793f00 /src | |
| parent | e32cb72c621cf1256066deb3d0db677fd410f672 (diff) | |
| download | box64-377a55f60f6dca906402825df3634f4ec20da217.tar.gz box64-377a55f60f6dca906402825df3634f4ec20da217.zip | |
fix exit doesnt free jump table completely (#781)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |