Skip to content

Commit

Permalink
That mutex was destroyed 2 times or 0 times...
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Dec 9, 2023
1 parent 339af4a commit 531ccfa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/box86context.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,20 +382,15 @@ void FreeBox86Context(box86context_t** context)

finiAllHelpers(ctx);

#ifdef DYNAREC
pthread_mutex_destroy(&ctx->mutex_lock);
#endif
#ifndef USE_CUSTOM_MUTEX
pthread_mutex_destroy(&ctx->mutex_once);
pthread_mutex_destroy(&ctx->mutex_once2);
pthread_mutex_destroy(&ctx->mutex_trace);
pthread_mutex_destroy(&ctx->mutex_tls);
pthread_mutex_destroy(&ctx->mutex_thread);
pthread_mutex_destroy(&ctx->mutex_bridge);
#ifndef ANDROID
pthread_mutex_destroy(&ctx->mutex_lock);
#endif
#endif
pthread_mutex_destroy(&ctx->mutex_lock);

freeCycleLog(ctx);

Expand Down

0 comments on commit 531ccfa

Please sign in to comment.