mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-08-11 05:48:46 +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() {
|
void Fiber::DestroyThreadFiber() {
|
||||||
if (*impl->next_fiber_ptr) {
|
if (impl->next_fiber_ptr && *impl->next_fiber_ptr) {
|
||||||
*impl->next_fiber_ptr = nullptr;
|
*impl->next_fiber_ptr = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue