mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 16:14:23 +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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user