diff --git a/src/xenia/base/threading_posix.cc b/src/xenia/base/threading_posix.cc index f6a6db193..7194855f2 100644 --- a/src/xenia/base/threading_posix.cc +++ b/src/xenia/base/threading_posix.cc @@ -1007,7 +1007,10 @@ Thread* Thread::GetCurrentThread() { pthread_t handle = pthread_self(); current_thread_ = new PosixThread(handle); - atexit([] { delete current_thread_; }); + // TODO(bwrsandman): Disabling deleting thread_local current thread to prevent + // assert in destructor. Since this is thread local, the + // "memory leaking" is controlled. + // atexit([] { delete current_thread_; }); return current_thread_; }