From 1ac0465a03e89127f0eb0d41930cefda70a7cb82 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 19 Nov 2021 21:43:32 +0100 Subject: Small change on unload of box64 --- src/box64context.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/box64context.c b/src/box64context.c index 1558811e..ee56ce5a 100755 --- a/src/box64context.c +++ b/src/box64context.c @@ -270,6 +270,13 @@ void FreeBox64Context(box64context_t** context) if(ctx->tlsdata) free(ctx->tlsdata); + free_neededlib(&ctx->neededlibs); + + if(ctx->emu_sig) + FreeX64Emu(&ctx->emu_sig); + + finiAllHelpers(ctx); + pthread_mutex_destroy(&ctx->mutex_once); pthread_mutex_destroy(&ctx->mutex_once2); pthread_mutex_destroy(&ctx->mutex_trace); @@ -282,13 +289,6 @@ void FreeBox64Context(box64context_t** context) pthread_mutex_destroy(&ctx->mutex_thread); pthread_mutex_destroy(&ctx->mutex_bridge); - free_neededlib(&ctx->neededlibs); - - if(ctx->emu_sig) - FreeX64Emu(&ctx->emu_sig); - - finiAllHelpers(ctx); - free(ctx); } -- cgit 1.4.1