1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:25:10 +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:
Andreas Kling 2019-09-27 19:10:52 +02:00
parent 57e73e4533
commit d5f3972012

View file

@ -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()