diff options
Diffstat (limited to 'src/libtools/threads.c')
| -rw-r--r-- | src/libtools/threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 6ca80bba..e19b3fda 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -166,7 +166,7 @@ void thread_set_emu(x64emu_t* emu) { emuthread_t *et = (emuthread_t*)pthread_getspecific(thread_key); if(!emu) { - if(et) box_free(et); + if(et) emuthread_destroy(et); pthread_setspecific(thread_key, NULL); return; } |