Modules using object_ref.
This commit is contained in:
@@ -172,7 +172,6 @@ X_STATUS XThread::Create() {
|
||||
tls_address_ = memory()->SystemHeapAlloc(tls_size);
|
||||
if (!tls_address_) {
|
||||
XELOGW("Unable to allocate thread local storage block");
|
||||
module->Release();
|
||||
return X_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
@@ -187,10 +186,6 @@ X_STATUS XThread::Create() {
|
||||
memory()->Fill(tls_address_, tls_size, 0);
|
||||
}
|
||||
|
||||
if (module) {
|
||||
module->Release();
|
||||
}
|
||||
|
||||
// Allocate processor thread state.
|
||||
// This is thread safe.
|
||||
thread_state_ = new ThreadState(kernel_state()->processor(), thread_id_,
|
||||
|
||||
Reference in New Issue
Block a user