diff --git a/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Thread.cpp b/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Thread.cpp index 34446ed05e..c01f8499f2 100644 --- a/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Thread.cpp +++ b/Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls/Thread.cpp @@ -53,6 +53,7 @@ namespace FEX::HLE { auto Thread = Handler->Thread; FEXCore::Allocator::free(Handler); CTX->ExecutionThread(Thread); + FEX::HLE::_SyscallHandler->TM.DestroyThread(Thread); return nullptr; }