mirror of https://git.suyu.dev/suyu/suyu.git
Fixed potential null-dereference in Fiber::DestroyThreadFiber()
This commit is contained in:
parent
ca068f6df2
commit
47e20e1ae6
|
|
@ -73,7 +73,7 @@ void Fiber::DestroyWorkFiber() {
|
|||
}
|
||||
|
||||
void Fiber::DestroyThreadFiber() {
|
||||
if (*impl->next_fiber_ptr) {
|
||||
if (impl->next_fiber_ptr && *impl->next_fiber_ptr) {
|
||||
*impl->next_fiber_ptr = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue