mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: No need to manually deallocate kernel stack Region in ~Thread()
Since we're keeping this Region in an OwnPtr, it will be torn down when we get to ~OwnPtr anyway.
This commit is contained in:
parent
57e73e4533
commit
d5f3972012
Notes:
sideshowbarker
2024-07-19 11:58:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d5f3972012c
1 changed files with 0 additions and 3 deletions
|
@ -121,9 +121,6 @@ Thread::~Thread()
|
|||
|
||||
if (m_userspace_stack_region)
|
||||
m_process.deallocate_region(*m_userspace_stack_region);
|
||||
|
||||
if (m_kernel_stack_region)
|
||||
m_process.deallocate_region(*m_kernel_stack_region);
|
||||
}
|
||||
|
||||
void Thread::unblock()
|
||||
|
|
Loading…
Reference in a new issue