mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-04-20 16:05:43 +00:00
Fixed potential null-dereference in Fiber::DestroyThreadFiber()
This commit is contained in:
parent
ca068f6df2
commit
47e20e1ae6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue